Commit 887c9725 authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

Some browsers (chrome, ie) do not support margin-left style specs on <option>...

Some browsers (chrome, ie) do not support margin-left style specs on <option> elements. Use multiple nbsps instead. Yes ugly... temp workaround while waiting for a master of style ?
parent 6f8d1b6e
......@@ -15,12 +15,13 @@
<b>Folder</b><br>
<select id="folders" name="dir">
%for d in sorted(dirs, key=str.lower):
%style = "margin-left: %dem" % (2*d.count('/'))
%space = "&nbsp;" * (4 * d.count('/'))
%if d in query['dir']:
<option style="{{style}}" selected value="{{d}}">{{re.sub('.+/','', d)}}</option>
%selected = "selected"
%else:
<option style="{{style}}" value="{{d}}">{{re.sub('.+/','', d)}}</option>
%selected = ""
%end
<option {{selected}} value="{{d}}">{{!space}}{{re.sub('.+/','', d)}}</option>
%end
</select><br>
<b>Dates</b> <small class="gray">YYYY[-MM][-DD]</small><br>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment