diff --git a/luci-app-tinyfilemanager/Makefile b/luci-app-tinyfilemanager/Makefile index 2829355c6..8b6fc9f98 100644 --- a/luci-app-tinyfilemanager/Makefile +++ b/luci-app-tinyfilemanager/Makefile @@ -7,8 +7,7 @@ include $(TOPDIR)/rules.mk LUCI_NAME:=luci-app-tinyfilemanager -PKG_VERSION:=2.5.3-20240804 -#PKG_RELEASE:=1 +PKG_VERSION:=2.5.3-20240823 LUCI_TITLE:=LuCI Tiny File Manager LUCI_DEPENDS:=+php8 +php8-cgi +php8-fastcgi +php8-fpm +php8-mod-session +php8-mod-ctype +php8-mod-fileinfo +php8-mod-zip +php8-mod-iconv +php8-mod-mbstring +coreutils-stat +zoneinfo-asia +bash +curl +tar diff --git a/luci-app-tinyfilemanager/htdocs/luci-static/resources/view/tinyfilemanager/config.js b/luci-app-tinyfilemanager/htdocs/luci-static/resources/view/tinyfilemanager/config.js index 8bfa096cf..5d7d3c5c7 100644 --- a/luci-app-tinyfilemanager/htdocs/luci-static/resources/view/tinyfilemanager/config.js +++ b/luci-app-tinyfilemanager/htdocs/luci-static/resources/view/tinyfilemanager/config.js @@ -38,7 +38,7 @@ return view.extend({ return fs.exec('/etc/init.d/tinyfilemanager', ['reload']) .catch(function(e) { ui.addNotification(null, E('p', e.message), 'error') }); }; - if (! has_location) + if (! has_location) o.description = _('To enable SSL support, you may need to install %s
').format(['php-nginx']); o = s.option(form.Flag, 'use_auth', _('Enable Authentication')); @@ -169,12 +169,12 @@ return view.extend({ o = s.option(form.Button, '_uprgade', _('Uprgade ') + _('Tiny File Manager')); o.inputtitle = _('Uprgade'); o.inputstyle = 'apply'; - o.onclick = L.bind(function(ev, section_id) { - var releasestag=document.getElementById('widget.' + this.cbid(section_id).match(/.+\./) + '_releaseslist').value; + o.onclick = function(ev, section_id) { + var releasestag=this.section.getOption('_releaseslist').formvalue(section_id); //alert(releasestag); return fs.exec_direct('/usr/libexec/tinyfilemanager-update', [releasestag]) .catch(function(e) { ui.addNotification(null, E('p', e.message), 'error') }); - }, o) + } }; // s = m.section(form.TypedSection, '_updater');