Hot answers tagged bug
I had the same issue on a Publishing Page Libary. I set the toolbar to No Toolbar on the AllItems.aspx page. Removing the toolbar causes the page to stop processing. Browse to the AllItems.aspx page and edit the page > edit web part > check tool bar type. Set to Full Toolbar and save. This should resolve the issue.
In the first code snippet you have doubled the ' around getElementById. In the second code snippet you have forgotten the html: in front of getElementById Edit after James comment: If you are not using minimal download strategy, you do not have to use SOD.
According to your post, my understanding is that you could not save change to a file in SharePoint Designer. You can go to the masterpage gallery in SharePoint Designer, right-click on the file and select "Reset to site definition", then check whether it works. For more information: Unable to update page layout Could you edit the site and save changes ...
Only top voted, non community-wiki answers of a minimum length are eligible