Révision 62424bdb
Ajouté par Renato Botelho il y a plus de 9 ans
usr/local/www/system_advanced_sysctl.php | ||
---|---|---|
45 | 45 |
|
46 | 46 |
require("guiconfig.inc"); |
47 | 47 |
|
48 |
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/system_advanced_sysctl.php'); |
|
49 |
|
|
48 | 50 |
if (!is_array($config['sysctl']['item'])) |
49 | 51 |
$config['sysctl']['item'] = array(); |
50 | 52 |
|
... | ... | |
256 | 258 |
<td width="22%" valign="top"> </td> |
257 | 259 |
<td width="78%"> |
258 | 260 |
<input id="submit" name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" /> |
259 |
<input id="cancelbutton" name="cancelbutton" type="button" class="formbtn" value="<?=gettext("Cancel"); ?>" onclick="history.back()" />
|
|
261 |
<input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
|
|
260 | 262 |
<?php if (isset($id) && $a_tunable[$id]): ?> |
261 | 263 |
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" /> |
262 | 264 |
<?php endif; ?> |
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