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/load_balancer_monitor_edit.php
41 41

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

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

  
44 46
if (!is_array($config['load_balancer']['monitor_type'])) {
45 47
	$config['load_balancer']['monitor_type'] = array();
46 48
}
......
352 354
		<tr align="left">
353 355
			<td width="22%" valign="top">&nbsp;</td>
354 356
			<td width="78%">
355
				<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" /><input type="button" class="formbtn" value="<?=gettext("Cancel"); ?>" onclick="history.back()" />
357
				<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" />
358
i				<input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
356 359
				<?php if (isset($id) && $a_monitor[$id]): ?>
357 360
				<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
358 361
				<?php endif; ?>

Formats disponibles : Unified diff