Révision 62424bdb
Ajouté par Renato Botelho il y a plus de 9 ans
usr/local/www/system_routes_edit.php | ||
---|---|---|
44 | 44 |
require_once("util.inc"); |
45 | 45 |
require_once("gwlb.inc"); |
46 | 46 |
|
47 |
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/system_routes.php'); |
|
48 |
|
|
47 | 49 |
if (!is_array($config['staticroutes']['route'])) |
48 | 50 |
$config['staticroutes']['route'] = array(); |
49 | 51 |
|
... | ... | |
326 | 328 |
<tr> |
327 | 329 |
<td width="22%" valign="top"> </td> |
328 | 330 |
<td width="78%"> |
329 |
<input id="save" name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" /> <input id="cancel" type="button" value="<?=gettext("Cancel"); ?>" class="formbtn" onclick="history.back()" /> |
|
331 |
<input id="save" name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" /> |
|
332 |
<input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" /> |
|
330 | 333 |
<?php if (isset($id) && $a_routes[$id]): ?> |
331 | 334 |
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" /> |
332 | 335 |
<?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