[英]FreeBusy not work for on Time 00:00 in my jquery week calendar plugin
I have used Jquery-weekcalendar plugin
. 我已经使用了
Jquery-weekcalendar plugin
。
In that i am using freebusy
for prevent some part from creating event on that time . 因此,我正在使用
freebusy
来防止某些部分在那个时候创建事件。 Its work fine for all Time Except 00:00
00:00
以外的所有时间都可以正常工作
My Problem : 我的问题 :
I have freebusy
with 我
freebusy
freebusys: [{"start":"2013-08-10T00:00:00", "end":"2013-08-10T23:00:00", "free": false},
So block time From 00:00 to 23:00 on 10th august
所以封锁时间
From 00:00 to 23:00 on 10th august
1>When i am try to create event on 00:15 TO 00:45
than its prevent Its Fine. 1>当我尝试在
00:15 TO 00:45
创建事件时,会阻止其正常运行。
You can see : 您可以看到:
2> But on same way i am try to create event 00:00 TO 00:15
But its allow me to create event is unexpected
output for me. (
2>但是我尝试以相同的方式创建事件
00:00 TO 00:15
但它允许我创建事件for me. (
是unexpected
输出for me. (
for me. (
expected` : not allow to create) for me. (
预期`:不允许创建)
You can see here : 您可以在这里看到:
I had this issue I think also. 我也有这个问题。 If I remember correctly you have to check manually if the new event overlaps with the freebusy times.
如果我没记错的话,您必须手动检查新事件是否与忙碌时间重叠。 I think since the start times are the same it's still evaluating as "free".
我认为由于开始时间相同,因此仍将其评估为“免费”。 Try checking also that the end time of your new event also does not fall inside a freeBusy.
还尝试检查新事件的结束时间是否也不在freeBusy内。
Problem is when we click on " 2013-08-10T00:00:00
" than freebusy manager
is going to find in "2013-07-10T00:00:00" to "2013-08-10T24:00:00"
so its find this block is not busy
and allow to create new event
. 问题是,当我们单击“
2013-08-10T00:00:00
”时, freebusy manager
将在"2013-07-10T00:00:00" to "2013-08-10T24:00:00"
它发现此块is not busy
并allow to create new event
。
Solution: I have solve this by replacing my click event time(00:00:00) To (00:00:01) only in this case, So its work for me. 解决方案:我已经通过仅在这种情况下将我的点击事件时间(00:00:00)替换为(00:00:01)来解决此问题,所以对我来说很有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.