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_ppps_edit.php
44 44
require("guiconfig.inc");
45 45
require("functions.inc");
46 46

  
47
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/interfaces_ppps.php');
48

  
47 49
define("CRON_MONTHLY_PATTERN", "0 0 1 * *");
48 50
define("CRON_WEEKLY_PATTERN", "0 0 * * 0");
49 51
define("CRON_DAILY_PATTERN", "0 0 * * *");
......
789 791
			<td width="22%" valign="top">&nbsp;</td>
790 792
			<td width="78%">
791 793
				<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" />
792
				<input type="button" value="<?=gettext("Cancel"); ?>" onclick="history.back()" />
794
				<input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
793 795
				<input name="ptpid" type="hidden" value="<?=htmlspecialchars($pconfig['ptpid']);?>" />
794 796
				<?php if (isset($id) && $a_ppps[$id]): ?>
795 797
					<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />

Formats disponibles : Unified diff