SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast OMGCarlos's Avatar
    Join Date
    Apr 2012
    Location
    Boston, MA
    Posts
    91
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How do I fix this known jQuery UI Sort bug?

    I'm designing this (http://omgcarlos.com/demo/omgDynami-forms/) dynamic form for a client, where the user is able to add or remove tasks. Once a task is created, they can also go in and change their order. In the above demo, if you add a task and slowly drag it up/down it will start to "flicker" or jump back in forth.

    This is the code I used to set it up, pretty basic:
    Code:
    		$('.omg-form li').sortable({
    			axis: 'y',		
    			handle: '.omg-drag',
    			placeholder: 'omg-drag-placeholder',
    			stop: function(e, ui){omg_updateIDLabels();},
    			revert: true,
    		});
    It's a known bug (http://bugs.jqueryui.com/ticket/7065), but the fix (at the bottom of the page) has me completely stumped. Where exactly do I add that bit of code?

    Also, I don't have IE8 on my mac currently. Can anyone view it in IE8 and tell me what error (if any) they are getting? It should look like this:

  2. #2
    Barefoot on the Moon! silver trophy
    Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,516
    Mentioned
    51 Post(s)
    Tagged
    1 Thread(s)
    Did you try the suggested workarounds that were suggested in the bug report?
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  3. #3
    SitePoint Enthusiast OMGCarlos's Avatar
    Join Date
    Apr 2012
    Location
    Boston, MA
    Posts
    91
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    That's the problem, I can't figure out where exactly I'm supposed to add that final workaround snippet. I'm guessing I could do:

    Code:
    $('.omg-form li').sortable({
    	change: function(){
    		...SOMETHING...
    	}
    });
    I just don't know where to even start.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •