Révision 62424bdb
Ajouté par Renato Botelho il y a plus de 9 ans
usr/local/www/load_balancer_relay_action_edit.php | ||
---|---|---|
40 | 40 |
##|-PRIV |
41 | 41 |
|
42 | 42 |
require("guiconfig.inc"); |
43 |
|
|
44 |
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/load_balancer_relay_action.php'); |
|
45 |
|
|
43 | 46 |
if (!is_array($config['load_balancer']['lbaction'])) { |
44 | 47 |
$config['load_balancer']['lbaction'] = array(); |
45 | 48 |
} |
... | ... | |
551 | 554 |
<tr align="left"> |
552 | 555 |
<td width="22%" valign="top"> </td> |
553 | 556 |
<td width="78%"> |
554 |
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>"><input type="button" class="formbtn" value="<?=gettext("Cancel"); ?>" onclick="history.back()"> |
|
557 |
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>"> |
|
558 |
<input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" /> |
|
555 | 559 |
<?php if (isset($id) && $a_action[$id] && $_GET['act'] != 'dup'): ?> |
556 | 560 |
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>"> |
557 | 561 |
<?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