完整日历事件超链接在Firefox中自动激活 [英] Full Calendar event hyperlinks automatically fire in Firefox

查看:207
本文介绍了完整日历事件超链接在Firefox中自动激活的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用完整日历 draggable事件。我已经在事件对象中指定了一个url,导致事件链接到一个页面。每当我在IE或Chrome中拖动事件时,点击事件不会触发(这是好的)。但它在Firefox中。有一个名为eventClick的事件由完整日历提供,但显然,在超链接重定向之前不触发。有没有办法防止拖动触发点击事件而不使用一些jQuery hack?

I'm using Full Calendar with draggable events. I have specified a url in the event object which causes the event to link to a page. Whenever I drag an event in IE or Chrome, the click event does not fire (that's good). But it does in Firefox. There is an event called eventClick provided by Full Calendar but apparently that doesn't fire before the hyperlink redirects. Is there some way to prevent drags from firing the click event without using some jQuery hack?

推荐答案

问题是与event.url

The problem is with event.url

将您的活动从网址更改为hackurl:

Change your event from url: to hackurl:

然后在您的点击事件中, p>

And then in your click event instead of:

if (event.url)
{ execute code }

if (event.hackurl)
{ execute code }



我有完全相同的问题,只是使用不同的自定义属性修复 - 现在它是一个干净,非常简单的解决方法,不需要hacking jquery或fullcalendar javascript。

I have the exact same problem and was fixed by simply using a different custom attribute - for now it's a clean and very simple workaround that doesn't require hacking jquery or fullcalendar javascript.

希望它有帮助

这篇关于完整日历事件超链接在Firefox中自动激活的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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