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_nat_out_edit.php
45 45
require_once("filter.inc");
46 46
require("shaper.inc");
47 47

  
48
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/firewall_nat_out.php');
49

  
48 50
if (!is_array($config['nat']['outbound']))
49 51
	$config['nat']['outbound'] = array();
50 52

  
......
822 824
		<tr>
823 825
			<td width="22%" valign="top">&nbsp;</td>
824 826
			<td width="78%">
825
				<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" /> <input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="history.back()" />
827
				<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" />
828
				<input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
826 829
<?php
827 830
			if (isset($id) && $a_out[$id]):
828 831
?>

Formats disponibles : Unified diff