diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-03-05 06:35:26 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-03-05 06:35:26 +0000 |
commit | 1db9f295fa3e98a1f1472d2a8eda881333db5a43 (patch) | |
tree | e6688cff377c1dcf4cd9a38127347f6319d874da /libs/web/luasrc/view/cbi/filebrowser.htm | |
parent | 32aec7a4f3f1aaabd8cff223346db560ddacb387 (diff) |
libs/web: repair and modernize FileBrowser widget, patches by Kevin Locke <klocke@digitalenginesoftware.com> (#207)
Diffstat (limited to 'libs/web/luasrc/view/cbi/filebrowser.htm')
-rw-r--r-- | libs/web/luasrc/view/cbi/filebrowser.htm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/web/luasrc/view/cbi/filebrowser.htm b/libs/web/luasrc/view/cbi/filebrowser.htm index f82957221c..40480ec9d9 100644 --- a/libs/web/luasrc/view/cbi/filebrowser.htm +++ b/libs/web/luasrc/view/cbi/filebrowser.htm @@ -54,10 +54,10 @@ $Id$ require("luci.dispatcher") local field = luci.http.formvalue('field') - local request = luci.dispatcher.context.path + local request = luci.dispatcher.context.args local path = { '' } - for i = 3, #request do + for i = 1, #request do if request[i] ~= '..' and #request[i] > 0 then path[#path+1] = request[i] end @@ -103,7 +103,7 @@ $Id$ if stat and stat.type == 'dir' then -%> <li class="dir"> - <img src="/luci-static/resources/cbi/folder.png" alt="Directory" /> + <img src="<%=resource%>/cbi/folder.gif" alt="<%:Directory%>" /> <a href="<%=baseurl%>/<%=e%>?field=<%=field%>"><%=e%>/</a> </li> <% end end -%> @@ -113,7 +113,7 @@ $Id$ if stat and stat.type ~= 'dir' then -%> <li class="file"> - <img src="/luci-static/resources/cbi/file.png" alt="File" /> + <img src="<%=resource%>/cbi/file.gif" alt="<%:File%>" /> <a href="#" onclick="callback('<%=filepath..e%>')"><%=e%></a> </li> <% end end -%> |