mardi 3 février 2015

SP2013 JavaScript on custom master page sometimes not working

I'm trying to implement accordion menu for quick launch ( as in http://ift.tt/1Ans2K5 ), but it behaves very weird. Sometimes it works correctly, but sometimes after closing the browser and starting it again it does not. I can open the console and debug it (IE) and it seems to work fine... except that there are no results on the page, nothing changes. I've tried replicating this in FF, and the problem initially started in a similar way, but after debugging it somehow started to work... and now it is working, even after refreshing page or restarting browser. The weirdest thing is that when I add alert with whatever in the beginning of the script, it's always working, as if alert would somehow force the quick launch to apply changes.


Any ideas? This is a modified standard master page, put into module and on-premise package.


Aucun commentaire:

Enregistrer un commentaire