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

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

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

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

  
......
598 600
                  <td width="22%" valign="top">&nbsp;</td>
599 601
                  <td width="78%">
600 602
		    <input type="hidden" name="bridgeif" value="<?=htmlspecialchars($pconfig['bridgeif']); ?>" />
601
                    <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" /> <input type="button" value="<?=gettext("Cancel"); ?>" onclick="history.back()" />
603
                    <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" />
604
                    <input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
602 605
                    <?php if (isset($id) && $a_bridges[$id]): ?>
603 606
                    <input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
604 607
                    <?php endif; ?>

Formats disponibles : Unified diff