When you open a document in SharePoint and then close it the SharePoint page in IE auto refreshes – this is quite handy if you’re editing metadata in your document and want the changes refreshed when you save the document back but…
I had a requirement to disable this functionality for one particular site – here’s how to prevent SharePoint refreshing the page when you close a document.
Create a file called disablesprefresh.js and save it in the LAYOUTS\1033 directory – for me this is located at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\1033
If you want to disable the page refresh for ALL pages add this line to disablesprefresh.js:
I only wanted to disable the refresh for one page so i have this in my disablesprefresh.js:
Next, edit your master page and add these two lines:
I placed them just below this line:
Check-in your master page\approve and you’re all done – awesome!