Subversion Repositories eFlore/Applications.del

Rev

Rev 1559 | Rev 1592 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1559 Rev 1562
Line 416... Line 416...
416
	
416
	
417
	private static native void mettreAJourUrlCouranteSansRecharger(String nouvelleUrl) /*-{
417
	private static native void mettreAJourUrlCouranteSansRecharger(String nouvelleUrl) /*-{
418
		// javascript double negative trick
418
		// javascript double negative trick
419
		// pour plus d'info http://stackoverflow.com/questions/4686583/can-someone-explain-this-double-negative-trick
419
		// pour plus d'info http://stackoverflow.com/questions/4686583/can-someone-explain-this-double-negative-trick
-
 
420
		if (!!($wnd.history && $wnd.history.pushState)) {
-
 
421
			var currentState = $wnd.history.state;
420
		if (!!($wnd.history && $wnd.history.pushState)) {
422
			if (currentState != nouvelleUrl) {
421
			$wnd.history.pushState(nouvelleUrl, "", nouvelleUrl);
423
				$wnd.history.pushState(nouvelleUrl, "", nouvelleUrl);
-
 
424
			}
422
		}
425
		}
423
	}-*/;
426
	}-*/;