I have a jQuery script that injects content into a publishing page. When it does, the edit button (the little one beside the browse tab) no longer works. If I don't run the script on page Ready, but run it through the Firefox console after the
page has fully loaded, everything works fine.
All I can deduce is that some SP script is assigning an event to the edit button after the page is loaded, and my script seems to be conflicting with it. I have tried using various delay methods such as ExecuteOrDelayUntilScriptLoaded, but nothing
seems to work.
Is there any way of telling when SP has finished all it's scripts on page ready?
I've spent hours on this, so am ready to just re-assign the click event, but don't think that's a great solution.
Appreciate any insight.
View Complete Post