diff options
author | therazer <devnull@localhost> | 2010-11-09 21:30:54 +0100 |
---|---|---|
committer | therazer <devnull@localhost> | 2010-11-09 21:30:54 +0100 |
commit | fa078c84b81f891aa800ca602fbc7d7ec3d02753 (patch) | |
tree | 8431575a6a27dab13700b538ccc4e94cba2e9c87 /module/web/templates/default/settings.html | |
parent | account reloadData fix (diff) | |
download | pyload-fa078c84b81f891aa800ca602fbc7d7ec3d02753.tar.xz |
added browser for files, too + little patches
Diffstat (limited to 'module/web/templates/default/settings.html')
-rw-r--r-- | module/web/templates/default/settings.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/module/web/templates/default/settings.html b/module/web/templates/default/settings.html index ab1a445db..79ec62d19 100644 --- a/module/web/templates/default/settings.html +++ b/module/web/templates/default/settings.html @@ -116,9 +116,14 @@ {% else %} {% ifequal option.type "folder" %} <input name="{{configname}}|{{skey}}|{{okey}}" type="text" id="{{skey}}|{{okey}}" value="{{option.value}}"/> - <input name="browsebutton" type="button" onClick="ifield = document.getElementById('{{skey}}|{{okey}}'); pathchooser = window.open('{% if option.value %}{% url path option.value %}{% else %}{% url root %}{% endif %}', 'pathchooser', 'scrollbars=yes,toolbar=no,menubar=no,statusbar=no,width=650,height=300'); pathchooser.ifield = ifield; window.ifield = ifield;" value="{% trans "Browse" %}"/> + <input name="browsebutton" type="button" onclick="ifield = document.getElementById('{{skey}}|{{okey}}'); pathchooser = window.open('{% if option.value %}{% url path option.value %}{% else %}{% url pathroot %}{% endif %}', 'pathchooser', 'scrollbars=yes,toolbar=no,menubar=no,statusbar=no,width=650,height=300'); pathchooser.ifield = ifield; window.ifield = ifield;" value="{% trans "Browse" %}"/> {% else %} - <input id="{{skey}}|{{okey}}" name="{{configname}}|{{skey}}|{{okey}}" type="text" value="{{option.value}}"/> + {% ifequal option.type "file" %} + <input name="{{configname}}|{{skey}}|{{okey}}" type="text" id="{{skey}}|{{okey}}" value="{{option.value}}"/> + <input name="browsebutton" type="button" onclick="ifield = document.getElementById('{{skey}}|{{okey}}'); filechooser = window.open('{% if option.value %}{% url file option.value %}{% else %}{% url fileroot %}{% endif %}', 'filechooser', 'scrollbars=yes,toolbar=no,menubar=no,statusbar=no,width=650,height=300'); filechooser.ifield = ifield; window.ifield = ifield;" value="{% trans "Browse" %}"/> + {% else %} + <input id="{{skey}}|{{okey}}" name="{{configname}}|{{skey}}|{{okey}}" type="text" value="{{option.value}}"/> + {% endifequal %} {% endifequal %} {% endif %} {% endifequal %} |