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

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

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

  
44 46
if (!is_array($config['hasync']))
45 47
	$config['hasync'] = array();
46 48

  
......
342 344
		<td width="78%">
343 345
			<input name="id" type="hidden" value="0" />
344 346
			<input name="Submit" type="submit" class="formbtn" value="Save" />
345
			<input class="formbtn" type="button" value="Cancel" onclick="history.back()" />
347
			<input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
346 348
		</td>
347 349
	</tr>
348 350
	</table>

Formats disponibles : Unified diff