summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_edit.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-09-12 16:36:54 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-09-12 16:37:08 -0300
commit62424bdbbb7b2f37c9a4b6e3531c7024e573317a (patch)
tree29d675e74c7ea900ec74e9019359cbb94c2d1275 /usr/local/www/pkg_edit.php
parent7e7f07aec204236f01a385ebe6f2ae4957d98922 (diff)
downloadpfsense-62424bdbbb7b2f37c9a4b6e3531c7024e573317a.zip
pfsense-62424bdbbb7b2f37c9a4b6e3531c7024e573317a.tar.gz
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
Diffstat (limited to 'usr/local/www/pkg_edit.php')
-rw-r--r--usr/local/www/pkg_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php
index 816114d..1a78ef3 100644
--- a/usr/local/www/pkg_edit.php
+++ b/usr/local/www/pkg_edit.php
@@ -937,7 +937,7 @@ if ($pkg['tabs'] <> "") {
echo "<input name='id' type='hidden' value=\"" . htmlspecialchars($id) . "\" />";
echo "<input name='Submit' type='submit' class='formbtn' value=\"" . htmlspecialchars($savevalue) . "\" />\n{$pkg_buttons}\n";
if (!$only_edit){
- echo "<input class='formbtn' type='button' value='".gettext("Cancel")."' onclick='history.back()' />";
+ echo "<input class=\"formbtn\" type=\"button\" value=\"".gettext("Cancel")."\" onclick=\"window.location.href='" . $_SERVER['HTTP_REFERER'] . "'\" />";
}
?>
</div>
OpenPOWER on IntegriCloud