Skip to main content

Search and Top Navigation

#9287 closed bug (fixed)

Opened May 13, 2013 02:49PM UTC

Closed October 29, 2013 05:59PM UTC

Last modified October 29, 2013 06:00PM UTC

Droppable: Scope option cannot be changed after initialization

Reported by: aherbst Owned by:
Priority: minor Milestone: 1.11.0
Component: ui.droppable Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:
Description

browser: Firefox 18.0.2

OS: Fedora 16

jsFiddle: http://jsfiddle.net/aherbst/gA6ZR/

This issue is summarized in http://stackoverflow.com/questions/3097332/jquery-drag-droppable-scope-issue. Basically, the $.ui.ddmanager.droppables array is not updated when you call

$('.droppable').droppable('option','scope','foo')

So Draggables with the scope 'foo' can no longer be dropped onto that Droppable. In the jsFiddle, if you comment out the 'option' calls on lines 3 and 4, and uncomment the block underneath (which is his solution from StackOverflow), then it works.

Attachments (0)
Change History (5)

Changed May 14, 2013 02:39AM UTC by tj.vantoll comment:1

status: newopen
summary: Setting scope on Droppable via 'option' call does not workDroppable: Scope option cannot be changed after initialization

Changed October 29, 2013 02:51PM UTC by tj.vantoll comment:2

#9639 is a duplicate of this ticket.

Changed October 29, 2013 02:52PM UTC by tj.vantoll comment:3

Changed October 29, 2013 05:59PM UTC by Andrei Picus comment:4

resolution: → fixed
status: openclosed

Droppable: update ddmanager when scope changes through setOption. Fixed #9287 - droppable: Scope option cannot be changed after initialization.

Changeset: ffab89e9bee97cf7cc74249b6e4ce9dd798013c9

Changed October 29, 2013 06:00PM UTC by mikesherov comment:5

milestone: none1.11.0