treewide: fix redirecting to System->Software
By replacing url "admin/system/packages" with "admin/system/opkg" Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
parent
1893892581
commit
85b67625f7
4 changed files with 4 additions and 4 deletions
|
@ -98,7 +98,7 @@ else
|
||||||
o.inputstyle = "apply"
|
o.inputstyle = "apply"
|
||||||
o.write = function()
|
o.write = function()
|
||||||
return luci.http.redirect(
|
return luci.http.redirect(
|
||||||
luci.dispatcher.build_url("admin/system/packages") ..
|
luci.dispatcher.build_url("admin/system/opkg") ..
|
||||||
"?submit=1&install=iptables-mod-conntrack-extra"
|
"?submit=1&install=iptables-mod-conntrack-extra"
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
|
@ -199,7 +199,7 @@ function option_install_package(s, tab)
|
||||||
|
|
||||||
function p_install.write()
|
function p_install.write()
|
||||||
return luci.http.redirect(
|
return luci.http.redirect(
|
||||||
luci.dispatcher.build_url("admin/system/packages") ..
|
luci.dispatcher.build_url("admin/system/opkg") ..
|
||||||
"?submit=1&install=%s" % opkg_package
|
"?submit=1&install=%s" % opkg_package
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
|
@ -113,7 +113,7 @@ L.poll(5, L.url('admin/network/iface_status', networks.join(',')), null,
|
||||||
var e = document.getElementById(ifc.id + '-ifc-edit');
|
var e = document.getElementById(ifc.id + '-ifc-edit');
|
||||||
if (e) e.disabled = true;
|
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&display=available';
|
||||||
L.dom.content(d, [
|
L.dom.content(d, [
|
||||||
E('em', _('Unsupported protocol type.')), E('br'),
|
E('em', _('Unsupported protocol type.')), E('br'),
|
||||||
E('a', { href: link }, _('Install protocol extensions...'))
|
E('a', { href: link }, _('Install protocol extensions...'))
|
||||||
|
|
|
@ -226,7 +226,7 @@ if not net:is_installed() then
|
||||||
|
|
||||||
function p_install.write()
|
function p_install.write()
|
||||||
return luci.http.redirect(
|
return luci.http.redirect(
|
||||||
luci.dispatcher.build_url("admin/system/packages") ..
|
luci.dispatcher.build_url("admin/system/opkg") ..
|
||||||
"?submit=1&install=%s" % net:opkg_package()
|
"?submit=1&install=%s" % net:opkg_package()
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue