Where to place a jquery unload function
Hi all,
I have a random issue which blocks the normal working with our tiki deployment.
I realise that removing the 'javascript_enabled' cookie the problem disappears.
Therefore I would like to put the following code, so that by log out this cookie is removed.
$(window).unload(function() {
$.cookies.del('javascript_enabled');
});
I'm not sure where to place this code. I think the best place could be templates/modules/mod-login_box.tpl
Have you any suggestion ?
Thank you in advance and best regards,
Manel