Problem: I added a Calendar View (week) for a list on a Site Page. When I click an event, it takes me to another page instead of opening a dialog box. Solution: Paste that into a Script Editor web part or save it as calendar.js and then call it from a Content Editor web part.
Script Editor
Edit Form Popup – Drag And Drop
By default, the edit form does not pop up when you drag and drop documents into a library. This piece of JavaScript will force an edit form to pop up for as many documents you drag and drop. For example, if you drag 5 documents at the same time, 5 individual edit forms will pop … Continue reading Edit Form Popup – Drag And Drop
Library Paging – First Page Button
Adding a "First Page" button is a simple work around for getting back to the first page when paging through documents. This is especially handy if you use document sets. Edit the page and add a Script Editor web part. Click EDIT SNIPPET. Embed the following code: I moved the Script Editor web part down below the … Continue reading Library Paging – First Page Button
Show Files & Library Tabs
Problem: You want the Files and Library tabs to be visible when you browse to a page with multiple web parts. Solution: JavaScript! Add this to a Script Editor web part on the same page. You may need to change "MSOZoneCell_WebPartWPQ2" to the web part ID of the web part you want to focus on. … Continue reading Show Files & Library Tabs
Disable Drag And Drop
This handy piece of JavaScript will disable the drag and drop function for all library web parts on a single page. Other upload options will still work. Just paste this into a Script Editor web part: