Fix onbeforeunload in ajaxdialog once and for all
Fix onbeforeunload in ajaxdialog once and for all

Now it's really just disabled while running the onClose callback no
matter if it was from a submission or some other reason.

mvidalgarcia/indico,indico/indico,OmeGak/indico,indico/indico,DirkHoffmann/indico,ThiefMaster/indico,mic4ael/indico,ThiefMaster/indico,OmeGak/indico,ThiefMaster/indico,mic4ael/indico,mic4ael/indico,pferreir/indico,OmeGak/indico,mvidalgarcia/indico,DirkHoffmann/indico,pferreir/indico,indico/indico,ThiefMaster/indico,DirkHoffmann/indico,mic4ael/indico,mvidalgarcia/indico,mvidalgarcia/indico,OmeGak/indico,pferreir/indico,pferreir/indico,DirkHoffmann/indico,indico/indico