Révision 62424bdb
Ajouté par Renato Botelho il y a plus de 9 ans
usr/local/www/services_unbound_domainoverride_edit.php | ||
---|---|---|
42 | 42 |
|
43 | 43 |
require("guiconfig.inc"); |
44 | 44 |
|
45 |
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/services_unbound.php'); |
|
46 |
|
|
45 | 47 |
if (!is_array($config['unbound']['domainoverrides'])) |
46 | 48 |
$config['unbound']['domainoverrides'] = array(); |
47 | 49 |
|
... | ... | |
153 | 155 |
<tr> |
154 | 156 |
<td width="22%" valign="top"> </td> |
155 | 157 |
<td width="78%"> |
156 |
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" /> <input class="formbtn" type="button" value="<?=gettext("Cancel");?>" onclick="history.back()" /> |
|
158 |
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" /> |
|
159 |
<input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" /> |
|
157 | 160 |
<?php if (isset($id) && $a_domainOverrides[$id]): ?> |
158 | 161 |
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" /> |
159 | 162 |
<?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