Révision 62424bdb
Ajouté par Renato Botelho il y a plus de 9 ans
usr/local/www/firewall_aliases_import.php | ||
---|---|---|
48 | 48 |
|
49 | 49 |
$pgtitle = array(gettext("Firewall"),gettext("Aliases"),gettext("Bulk import")); |
50 | 50 |
|
51 |
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/firewall_aliases.php'); |
|
52 |
|
|
51 | 53 |
// Add all Load balance names to reserved_keywords |
52 | 54 |
if (is_array($config['load_balancer']['lbpool'])) |
53 | 55 |
foreach ($config['load_balancer']['lbpool'] as $lbpool) |
... | ... | |
207 | 209 |
<td width="22%" valign="top"> </td> |
208 | 210 |
<td width="78%"> |
209 | 211 |
<input id="submit" name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" /> |
210 |
<input class="formbtn" type="button" value="<?=gettext("Cancel"); ?>" onclick="history.back()" />
|
|
212 |
<input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
|
|
211 | 213 |
</td> |
212 | 214 |
</tr> |
213 | 215 |
</table> |
Formats disponibles : Unified diff
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