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_gif_edit.php
40 40

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

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

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

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

Formats disponibles : Unified diff