Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Calendar Overlay: Open In Same Browser

$
0
0

I am in need of a SharePoint 2013 script for having a calendar overlay open in the same window (not in new tab or window) once an item is selected. I have tried the following script, but need one 2013 specific. If you have one complete, please provide as will be executing via a Content WebPart.

><style>
// load our function to the delayed load list
 _spBodyOnLoadFunctionNames.push('calendarEventLinkIntercept');

 // hook into the existing SharePoint calendar load function.
 function calendarEventLinkIntercept()
 {
  if (SP.UI.ApplicationPages.CalendarNotify.$4a)
     {
       var OldCalendarNotify = SP.UI.ApplicationPages.CalendarNotify.$4a;
       SP.UI.ApplicationPages.CalendarNotify.$4a = function ()
         {
           OldCalendarNotify();
           bindEventClickHandler();
         }
     }
    if (SP.UI.ApplicationPages.CalendarNotify.$4b)
     {
       var OldCalendarNotify = SP.UI.ApplicationPages.CalendarNotify.$4b;
       SP.UI.ApplicationPages.CalendarNotify.$4b =  function ()
         {
           OldCalendarNotify();
           bindEventClickHandler();

         } 
    }
   // future service pack change may go here!
   // if (SP.UI.ApplicationPages.CalendarNotify.???)
 }

 function bindEventClickHandler() {
  $('.ms-acal-rootdiv a').click(function(){EditLink2(this,'WPQ2');return false;});
 }
<style>


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>