Subversion Repositories ALCASAR

Rev

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

Rev 764 Rev 788
Line 231... Line 231...
231
    setTimeout('chilliController.refresh()', 1500);
231
    setTimeout('chilliController.refresh()', 1500);
232
}
232
}
233
 
233
 
234
// The event window.onbeforeunload doesn't work with some browsers like 'opera' or 'Safari'.
234
// The event window.onbeforeunload doesn't work with some browsers like 'opera' or 'Safari'.
235
// In the next version of alcasar, 30' without the status window do an automatic logout.
235
// In the next version of alcasar, 30' without the status window do an automatic logout.
-
 
236
/*
236
var alcasarOnbeforeUnload = window.onbeforeunload;
237
var alcasarOnbeforeUnload = window.onbeforeunload;
237
 
238
 
238
window.onbeforeunload = function(){
239
window.onbeforeunload = function(){
239
	if (alcasarOnbeforeUnload)
240
	if (alcasarOnbeforeUnload)
240
		alcasarOnbeforeUnload();
241
		alcasarOnbeforeUnload();
241
	alcasarLogoff();
242
	alcasarLogoff();
242
}
243
}
-
 
244
*/
-
 
245
 
-
 
246
// The event window.onbeforeunload doesn't work with some browsers like 'opera' or 'Safari'.
-
 
247
window.onbeforeunload = function(){
-
 
248
	alcasarLogoff();
-
 
249
	//on annule la fonction alcasarLogoff pour ne pas avoir une deuxième requette sur onunload
-
 
250
	alcasarLogoff = function(){}
-
 
251
}
-
 
252
// 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.
-
 
253
window.onunload = function(){
-
 
254
	//la fonction quelque chose uniquement si onbeforeunload n'est pas executée
-
 
255
	alcasarLogoff();
-
 
256
}