Révision 62424bdb
Ajouté par Renato Botelho il y a plus de 9 ans
usr/local/www/load_balancer_pool_edit.php | ||
---|---|---|
43 | 43 |
require_once("filter.inc"); |
44 | 44 |
require_once("util.inc"); |
45 | 45 |
|
46 |
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/load_balancer_pool.php'); |
|
47 |
|
|
46 | 48 |
if (!is_array($config['load_balancer']['lbpool'])) { |
47 | 49 |
$config['load_balancer']['lbpool'] = array(); |
48 | 50 |
} |
... | ... | |
329 | 331 |
<td width="78%"> |
330 | 332 |
<br /> |
331 | 333 |
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" onclick="AllServers('serversSelect', true); AllServers('serversDisabledSelect', true);" /> |
332 |
<input type="button" class="formbtn" value="<?=gettext("Cancel"); ?>" onclick="history.back()" />
|
|
334 |
<input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
|
|
333 | 335 |
<?php if (isset($id) && $a_pool[$id] && $_GET['act'] != 'dup'): ?> |
334 | 336 |
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" /> |
335 | 337 |
<?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