| Issue 1068: | when droppable enabled it somehow override the click event (sometimes) in tabs component | |
| 1 person starred this issue and may be notified of changes. | Back to list |
hi there, I'm using this great component, and came across the bellow problem:
I have tabs element and inside I have full calendar, and when droppable is enabled some of the click events "disappear".
I didn't have time to dig into it in details, but replacing document's dragstart and dragstop by jQuery's droppable worked for me...
not sure if it's my mistake somewhere, but below is the code, hope it helps.
thanks for this great calendar component,
Stas
if (options.droppable) {
/* Stas begin
$(document)
.bind('dragstart', function(ev, ui) {
var _e = ev.target;
var e = $(_e);
if (!e.parents('.fc').length) { // not already inside a calendar
var accept = options.dropAccept;
if ($.isFunction(accept) ? accept.call(_e, e) : e.is(accept)) {
_dragElement = _e;
currentView.dragStart(_dragElement, ev, ui);
}
}
})
.bind('dragstop', function(ev, ui) {
if (_dragElement) {
currentView.dragStop(_dragElement, ev, ui);
_dragElement = null;
}
});
*/
element.droppable({
over: function(ev, ui) {
var _e = ui.draggable[0];
var e = ui.draggable;
if (!e.parents('.fc').length) { // not already inside a calendar // Stas
var accept = options.dropAccept;
if ($.isFunction(accept) ? accept.call(_e, e) : e.is(accept)) {
_dragElement = _e;
currentView.dragStart(_dragElement, ev, ui);
}
}
}
, drop: function(ev, ui) {
if (_dragElement) {
currentView.dragStop(_dragElement, ev, ui);
_dragElement = null;
}
}
});
// Stas - end
}
Sep 29, 2011
Project Member
#1
adamrs...@gmail.com
Status:
WontFix
|
|
| ► Sign in to add a comment |