/    Sign up×
Community /Pin to ProfileBookmark

Scriptaculous – Sortable.create bug?!?

Im using Scriptaculous v1.7 to perform sortable drag drop. My display uses:

Sortable.create(‘DocumentContainer_1′,{tag:’div’,onUpdate:SortUpdate, handle:’Gripper’,constraint:false,scroll:window});

There are about 5 div blocks with gripper hanldes next to them. Drag drop sorting works fine. Later i perform an AJAX update within the child region of the gripper div block updating it with new content. Im trying to ALSO apply Sortable.create to this new content like so:

Sortable.create(‘Attachments_123′,{tag:’div’,overlap:’horizontal’, onUpdate:SortUpdateAttachment, only:’AttachmentFile’,constraint:false});

Whats happening here is the inner contents is made draggable within its region amongst its 10 objects. The sorting works fine.

The prob im having is once i apply the Sortable.create for the gripper child objects, the main level sortable objects stop working.

Why does this occur?

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @quantass0 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...