From 9ba74d4cea613fee9aa82ee1ba03bcb998372d45 Mon Sep 17 00:00:00 2001 From: Christophe Verbinnen Date: Wed, 30 Mar 2011 06:49:07 -0700 Subject: [PATCH 1/2] Makes sure you override the position relative from jqueryui.css even if it's loaded afterwards --- jquery.weekcalendar.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jquery.weekcalendar.css b/jquery.weekcalendar.css index 22c359a..389837f 100644 --- a/jquery.weekcalendar.css +++ b/jquery.weekcalendar.css @@ -1,5 +1,4 @@ - .wc-container { font-size: 14px; font-family: arial, helvetica; @@ -210,7 +209,7 @@ table.wc-time-slots { /* IE 5-7 */ filter: alpha(opacity=80); /* Netscape */ -moz-opacity: 0.8; /* Safari 1 */ -khtml-opacity: 0.8; - position: absolute; + position: absolute!important; text-align: center; overflow: hidden; cursor: pointer; From b02008c95968c2575bf40113dda871ac5362499f Mon Sep 17 00:00:00 2001 From: Christophe Verbinnen Date: Mon, 4 Apr 2011 16:41:23 +0200 Subject: [PATCH 2/2] Adds a double click event --- jquery.weekcalendar.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/jquery.weekcalendar.js b/jquery.weekcalendar.js index 3dec832..519c3a9 100644 --- a/jquery.weekcalendar.js +++ b/jquery.weekcalendar.js @@ -76,6 +76,9 @@ eventClick: function(calEvent, element, dayFreeBusyManager, calendar, clickEvent) { }, + eventDblClick: function(calEvent, element, dayFreeBusyManager, + calendar, clickEvent) { + }, eventRender: function(calEvent, element) { return element; }, @@ -601,7 +604,17 @@ if ($target.data('sizing')) { return;} options.eventMouseout($target.data('calEvent'), $target, event); } - }); + }).dblclick(function(event){ + var $target = $(event.target),freeBusyManager; + if ($target.data('preventClick')) { + return; + } + var $calEvent = $target.hasClass('wc-cal-event') ? $target : $target.parents('.wc-cal-event'); + if ($calEvent.length) { + freeBusyManager = self.getFreeBusyManagerForEvent($calEvent.data('calEvent')); + options.eventDblClick($calEvent.data('calEvent'), $calEvent, freeBusyManager, self.element, event); + } + }); }, /*