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.
Comment | File | Size | Author |
---|---|---|---|
dashboard_jquery-ui-work.patch | 5.79 KB | sirkitree | |
Comments
Comment #1
sirkitree CreditAttribution: sirkitree commentedmarking as needs work.
Comment #2
sirkitree CreditAttribution: sirkitree commentedLink to a relevent article on applying the .draggable to the clone: http://www.nabble.com/Drag-and-drop,-and-drag-some-more--td15012823s2724...
Comment #3
drummComment #4
sirkitree CreditAttribution: sirkitree commentedLate 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 :(
Comment #5
RobLoachVery cool, subscribing. I'll take a look at this sometime soon.
Comment #6
niles CreditAttribution: niles commentedSubscribing.
Is this module going to be for drupal 6?
Any idea on timeframe for alpha?
Sounds great!
Comment #7
drummsirkitree, 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.
Comment #8
lisarex CreditAttribution: lisarex commentedI've linked this from the Redesign project #661532: Meta issue for Dashboard because this issue was tagged 'drupal.org redesign'
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commentedThis thread is no longer relevant. Much of the jquery was reworked for the d.o release.