#85 new
Laurent Fortin

Nice draggable/sortable fix for IE

Reported by Laurent Fortin | September 8th, 2008 @ 08:59 PM | in 1.8.3 bugfix release

Recently, I had an issue with some sortable UL lists in IE6.

Then, I found this fix:


So far it seems to have corrected the problem.

The problem of the sortable UL list was that it seemed to trigger multiple event handlers at the same time, causing some weird behavior.

On the Google group "Prototype & script.aculo.us", I have suggested to include this patch in a further release of Script.aculo.us. Following John-David Dalton's suggestion to submit this patch, I open this new ticket!

Comments and changes to this ticket

  • marcus.greasly

    marcus.greasly October 29th, 2008 @ 02:13 PM


    I've experienced this issue (and found the same fix on teh intertubes). I rolled the fix into the dragdrop.js for simplicity by modifying the options_for_draggable, adding:

    onStart: function() { if (document.all) {

    Event.observe(document.body, "drag", function() { Event.stop(event); return false; } );
    Event.observe(document.body, "selectstart", function() { Event.stop(event); return false; } );

    } }, revert: function() { if (document.all) {

    Event.stopObserving(document.body, "drag", function() { Event.stop(event); return false; } );
    Event.stopObserving(document.body, "selectstart", function() { Event.stop(event); return false; } );

    } return true; }

    Note the added return true as we've replaced the default revert option. I've attached my modified js file for your viewing pleasure.

  • ronin-15560 (at lighthouseapp)

    ronin-15560 (at lighthouseapp) November 20th, 2008 @ 05:00 PM

    • Milestone set to 1.8.3 bugfix release

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

script.aculo.us is an open-source JavaScript framework for visual effects and interface behaviours.
<br/><b>Source available from github</b>
The Git repository resides at:
<a href="http://github.com/madrobby/scriptaculous">http://github.com/madrobby/scriptaculous</a>
<br/>Check out the current development trunk with:
<code>git clone git://github.com/madrobby/scriptaculous.git</code>
<br/>As <b>script.aculo.us 1.xx is feature-frozen</b>, this development trunk is for <b>bugfixes only</b>.
<br/>New development should happen only for
<b>script.aculo.us 2</b>.
<br/><b>Creating a bug report</b>
When creating a bug report, be sure to include as much relevant information as possible. Post a an example that shows off the problem. Preferably, <b>alter the unit tests</b> and show through either changed or added tests how the expected behavior is not occuring.