jquery-ui work

sirkitree - April 12, 2009 - 01:29
Project:Dashboard
Version:HEAD
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:needs work
Issue tags:awesomeness, drupal.org redesign
Description

Ok so here is the work I completed during the code sprint. Some concepts of note:
#1: tabs need to be sortable and droppable (droppable so that gadget can drop onto them, moving the gadget to the next page)
#2: gadgets need to be sortable and draggable
#3: in order to have these conditions met, we have to use helper: 'clone' within the .draggable in order for the .draggable to be compatible with the .sortable (@see the documentation for .draggable:connectToSortable)

After applying this patch there are still a few issues to resolve.
#1: the cloning screws with the .sortables - instead of just moving, the element is now cloned, and I haven't yet figured out how to target the original object that was cloned in order to remove it.
#2: the .sortable tabs are inheriting some of the properties of the .droppable which is applied to the same element. main evidence of this is that they change color when you try to sort the tabs, allowing you to drop a tab onto another tab, resulting in all of the tabs disappearing. The .droppable:containment option SHOULD be making this impossible as tabs do not conform to the containment specification.

AttachmentSize
dashboard_jquery-ui-work.patch5.79 KB

#1

sirkitree - April 12, 2009 - 03:34
Status:active» needs work

marking as needs work.

#2

sirkitree - April 12, 2009 - 04:55

Link to a relevent article on applying the .draggable to the clone: http://www.nabble.com/Drag-and-drop,-and-drag-some-more--td15012823s2724...

#3

drumm - April 12, 2009 - 04:56

#4

sirkitree - April 12, 2009 - 09:30

Late night idea: try destroying or disabling the .droppable for the navigation on .sortable:start and recreating it on .sortable:stop - doesn't seem to destroy or disable successfully :(

#5

Rob Loach - April 12, 2009 - 17:30
Issue tags:+awesomeness

Very cool, subscribing. I'll take a look at this sometime soon.

#6

niles - April 13, 2009 - 01:58

Subscribing.

Is this module going to be for drupal 6?
Any idea on timeframe for alpha?

Sounds great!

#7

drumm - April 13, 2009 - 02:09

sirkitree, since this is a pre-alpha module, do you think your code is better than what we have so far? I want to keep the commits moving.

 
 

Drupal is a registered trademark of Dries Buytaert.