在弹出窗口中的日历叠加层中打开项目,而不是在SharePoint 2010中打开新窗口 [英] Open items in calendar overlay in Popup instead of new window in SharePoint 2010

查看:83
本文介绍了在弹出窗口中的日历叠加层中打开项目,而不是在SharePoint 2010中打开新窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能说出如何在SharePoint 2010中处理日历覆盖项目的单击事件.我想在弹出窗口中而不是在新窗口中打开日历覆盖中的项目.

我已经尝试过使用此javascript并将其放置在CEWP中,但仍然对我不起作用.

Could anyone tell how to handle click event of Calendar overlay items in SharePoint 2010. I want to open items in calendar overlay in Popup instead of new window.

I have tried this javascript and placed in CEWP but still its not working for me.

<script src="/SharedDocument/jquery-1.7.1.min" type="text/javascript"></script>

<script type="text/javascript">
// 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.???)
    }
</script>



我已将JQuery引用放在库SharedDocument(custom)中.

希望有一个快速的答案.



I have placed JQuery refrence in library SharedDocument(custom).

Hoping for a quick answer.

推荐答案

4a) { var OldCalendarNotify = SP.UI.ApplicationPages.CalendarNotify.
4a) { var OldCalendarNotify = SP.UI.ApplicationPages.CalendarNotify.


4a; SP.UI.ApplicationPages.CalendarNotify.
4a; SP.UI.ApplicationPages.CalendarNotify.


4a =函数() { OldCalendarNotify(); bindEventClickHandler(); } } 如果(SP.UI.ApplicationPages.CalendarNotify.
4a = function () { OldCalendarNotify(); bindEventClickHandler(); } } if (SP.UI.ApplicationPages.CalendarNotify.


这篇关于在弹出窗口中的日历叠加层中打开项目,而不是在SharePoint 2010中打开新窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆