diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-01-04 08:59:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-04 08:59:49 +0100 |
commit | e847a93f7817711f927f1481d99e5270fb2aaf30 (patch) | |
tree | 7b1cfb6ac1e86a3147debd99973b0b8a745d9069 | |
parent | c7776c8959b1297b03de9eb836edf3a447b0b6fa (diff) | |
parent | 7908b2b71cd42c4bc6a76f0baabb4cde6d09f553 (diff) |
Merge pull request #2409 from yousong/install-packages
treewide: fix redirecting to System->Software
4 files changed, 7 insertions, 7 deletions
diff --git a/applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/rules.lua b/applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/rules.lua index 4a01bed247..553b297ac0 100644 --- a/applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/rules.lua +++ b/applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/rules.lua @@ -98,8 +98,8 @@ else o.inputstyle = "apply" o.write = function() return luci.http.redirect( - luci.dispatcher.build_url("admin/system/packages") .. - "?submit=1&install=iptables-mod-conntrack-extra" + luci.dispatcher.build_url("admin/system/opkg") .. + "?query=iptables-mod-conntrack-extra" ) end end diff --git a/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua b/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua index 5fc20c52bc..cbe32afde6 100644 --- a/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua +++ b/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua @@ -199,8 +199,8 @@ function option_install_package(s, tab) function p_install.write() return luci.http.redirect( - luci.dispatcher.build_url("admin/system/packages") .. - "?submit=1&install=%s" % opkg_package + luci.dispatcher.build_url("admin/system/opkg") .. + "?query=%s" % opkg_package ) end end diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/network.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/network.js index acca7cf8a5..145f5807a0 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/network.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/network.js @@ -113,7 +113,7 @@ L.poll(5, L.url('admin/network/iface_status', networks.join(',')), null, var e = document.getElementById(ifc.id + '-ifc-edit'); if (e) e.disabled = true; - var link = L.url('admin/system/packages') + '?query=luci-proto&display=available'; + var link = L.url('admin/system/opkg') + '?query=luci-proto'; L.dom.content(d, [ E('em', _('Unsupported protocol type.')), E('br'), E('a', { href: link }, _('Install protocol extensions...')) diff --git a/modules/luci-mod-network/luasrc/model/cbi/admin_network/ifaces.lua b/modules/luci-mod-network/luasrc/model/cbi/admin_network/ifaces.lua index bff859befa..5b230795c3 100644 --- a/modules/luci-mod-network/luasrc/model/cbi/admin_network/ifaces.lua +++ b/modules/luci-mod-network/luasrc/model/cbi/admin_network/ifaces.lua @@ -226,8 +226,8 @@ if not net:is_installed() then function p_install.write() return luci.http.redirect( - luci.dispatcher.build_url("admin/system/packages") .. - "?submit=1&install=%s" % net:opkg_package() + luci.dispatcher.build_url("admin/system/opkg") .. + "?query=%s" % net:opkg_package() ) end end |