Révision 62424bdb
Ajouté par Renato Botelho il y a plus de 9 ans
usr/local/www/interfaces.php | ||
---|---|---|
54 | 54 |
require_once("vpn.inc"); |
55 | 55 |
require_once("xmlparse_attr.inc"); |
56 | 56 |
|
57 |
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/interfaces.php'); |
|
58 |
|
|
57 | 59 |
// Get configured interface list |
58 | 60 |
$ifdescrs = get_configured_interface_with_descr(false, true); |
59 | 61 |
|
... | ... | |
3296 | 3298 |
<td width="78%"> |
3297 | 3299 |
<br /> |
3298 | 3300 |
<input id="save" name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" /> |
3299 |
<input id="cancel" type="button" class="formbtn" value="<?=gettext("Cancel"); ?>" onclick="history.back()" />
|
|
3301 |
<input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
|
|
3300 | 3302 |
<input name="if" type="hidden" id="if" value="<?=htmlspecialchars($if);?>" /> |
3301 | 3303 |
<?php if ($wancfg['if'] == $a_ppps[$pppid]['if']) : ?> |
3302 | 3304 |
<input name="ppp_port" type="hidden" value="<?=htmlspecialchars($pconfig['port']);?>" /> |
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