Projet

Général

Profil

« Précédent | Suivant » 

Révision 62424bdb

Ajouté par Renato Botelho il y a plus de 9 ans

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

Voir les différences:

usr/local/www/interfaces_lagg_edit.php
40 40

  
41 41
require("guiconfig.inc");
42 42

  
43
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/interfaces_lagg.php');
44

  
43 45
if (!is_array($config['laggs']['lagg']))
44 46
	$config['laggs']['lagg'] = array();
45 47

  
......
229 231
                  <td width="22%" valign="top">&nbsp;</td>
230 232
                  <td width="78%">
231 233
				    <input type="hidden" name="laggif" value="<?=htmlspecialchars($pconfig['laggif']); ?>" />
232
                    <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" /> <input type="button" value="<?=gettext("Cancel"); ?>" onclick="history.back()" />
234
                    <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" />
235
                    <input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
233 236
                    <?php if (isset($id) && $a_laggs[$id]): ?>
234 237
                    <input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
235 238
                    <?php endif; ?>

Formats disponibles : Unified diff