Project:Dashboard
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (fixed)
Issue tags:awesomeness, drupal.org redesign

Issue Summary

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

Comments

#1

Status:active» needs work

marking as needs work.

#2

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

#4

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

Issue tags:+awesomeness

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

#6

Subscribing.

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

Sounds great!

#7

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.

#8

I've linked this from the Redesign project #661532: Meta issue for Dashboard because this issue was tagged 'drupal.org redesign'

#9

Status:needs work» closed (fixed)

This thread is no longer relevant. Much of the jquery was reworked for the d.o release.

nobody click here