Subversion Repositories ALCASAR

Rev

Rev 2097 | Rev 2370 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2097 Rev 2112
Line 234... Line 234...
234
 
234
 
235
    showWaitPage(); 
235
    showWaitPage(); 
236
    setTimeout('chilliController.refresh()', 1500);
236
    setTimeout('chilliController.refresh()', 1500);
237
}
237
}
238
 
238
 
239
// The event window.onbeforeunload doesn't work with some browsers like 'opera' or 'Safari'.
-
 
240
// In the next version of alcasar, 30' without the status window do an automatic logout.
-
 
241
/*
-
 
242
var alcasarOnbeforeUnload = window.onbeforeunload;
-
 
243
 
-
 
244
window.onbeforeunload = function(){
-
 
245
	if (alcasarOnbeforeUnload)
-
 
246
		alcasarOnbeforeUnload();
-
 
247
	alcasarLogoff();
-
 
248
}
-
 
249
*/
-
 
250
 
-
 
251
// The event window.onbeforeunload doesn't work with some browsers like 'opera' or 'Safari'.
-
 
252
window.onbeforeunload = function(){
-
 
253
	alcasarLogoff();
-
 
254
	//on annule la fonction alcasarLogoff pour ne pas avoir une deuxième requette sur onunload
-
 
255
	alcasarLogoff = function(){}
-
 
256
}
-
 
257
// Opera doesn't fire the unload event when you navigate Back and Forward or close the window. It does when you click on a link.
-
 
258
window.onunload = function(){
-
 
259
	//la fonction quelque chose uniquement si onbeforeunload n'est pas executée
-
 
260
	alcasarLogoff();
-
 
261
}
-