diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-09-12 16:36:54 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-09-12 16:37:08 -0300 |
commit | 62424bdbbb7b2f37c9a4b6e3531c7024e573317a (patch) | |
tree | 29d675e74c7ea900ec74e9019359cbb94c2d1275 /usr/local/www/firewall_schedule_edit.php | |
parent | 7e7f07aec204236f01a385ebe6f2ae4957d98922 (diff) | |
download | pfsense-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/firewall_schedule_edit.php')
-rw-r--r-- | usr/local/www/firewall_schedule_edit.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/firewall_schedule_edit.php b/usr/local/www/firewall_schedule_edit.php index e1901e3..31aa97a 100644 --- a/usr/local/www/firewall_schedule_edit.php +++ b/usr/local/www/firewall_schedule_edit.php @@ -60,6 +60,8 @@ require_once("shaper.inc"); $pgtitle = array(gettext("Firewall"),gettext("Schedules"),gettext("Edit")); +$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/firewall_schedule.php'); + $dayArray = array (gettext('Mon'),gettext('Tues'),gettext('Wed'),gettext('Thur'),gettext('Fri'),gettext('Sat'),gettext('Sun')); $monthArray = array (gettext('January'),gettext('February'),gettext('March'),gettext('April'),gettext('May'),gettext('June'),gettext('July'),gettext('August'),gettext('September'),gettext('October'),gettext('November'),gettext('December')); @@ -1163,7 +1165,7 @@ EOD; <td width="15%" valign="top"> </td> <td width="85%"> <input id="submit" name="submit" type="submit" onclick="return checkForRanges();" class="formbtn" value="<?=gettext("Save"); ?>" /> - <input id="cancelbutton" name="cancelbutton" type="button" class="formbtn" value="<?=gettext("Cancel"); ?>" onclick="history.back()" /> + <input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" /> <?php if (isset($id) && $a_schedules[$id]): ?> <input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" /> <?php endif; ?> |