My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
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
Status:  WontFix
Owner:  ----
Closed:  Sep 2011


Sign in to add a comment
 
Reported by stas.zin...@gmail.com, Aug 6, 2011
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
I don't really understand the root problem, so i don't want to just blindly incorporate these changes. if it is something you want to do, could you please post a recreation of the problem? (as a runnable html file). closing this issue for now.
Status: WontFix
Sign in to add a comment

Powered by Google Project Hosting