From 62424bdbbb7b2f37c9a4b6e3531c7024e573317a Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 12 Sep 2014 16:36:54 -0300 Subject: Remove almost all calls to history.back() and make Cancel button back to HTTP_REFERER, there are a couple of places I didn't touch on this commit because it requires more work --- usr/local/www/interfaces.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr/local/www/interfaces.php') diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 6aa0014..dc0198c 100644 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -54,6 +54,8 @@ require_once("rrd.inc"); require_once("vpn.inc"); require_once("xmlparse_attr.inc"); +$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/interfaces.php'); + // Get configured interface list $ifdescrs = get_configured_interface_with_descr(false, true); @@ -3296,7 +3298,7 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"),
" /> - " onclick="history.back()" /> + " onclick="window.location.href=''" /> -- cgit v1.1