Projet

Général

Profil

« Précédent | Suivant » 

Révision 62424bdb

Ajouté par Renato Botelho il y a plus de 9 ans

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

Voir les différences:

usr/local/www/firewall_schedule_edit.php
60 60

  
61 61
$pgtitle = array(gettext("Firewall"),gettext("Schedules"),gettext("Edit"));
62 62

  
63
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/firewall_schedule.php');
64

  
63 65
$dayArray = array (gettext('Mon'),gettext('Tues'),gettext('Wed'),gettext('Thur'),gettext('Fri'),gettext('Sat'),gettext('Sun'));
64 66
$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'));
65 67

  
......
1163 1165
				    <td width="15%" valign="top">&nbsp;</td>
1164 1166
				    <td width="85%">
1165 1167
				      <input id="submit" name="submit" type="submit" onclick="return checkForRanges();" class="formbtn" value="<?=gettext("Save"); ?>" />
1166
				      <input id="cancelbutton" name="cancelbutton" type="button" class="formbtn" value="<?=gettext("Cancel"); ?>" onclick="history.back()" />
1168
				      <input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
1167 1169
				      <?php if (isset($id) && $a_schedules[$id]): ?>
1168 1170
				      <input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
1169 1171
				      <?php endif; ?>

Formats disponibles : Unified diff