This project is read-only.

sorting lists with text box inputs

Jan 14, 2013 at 4:59 PM

Hi mcm,

Great plug-in!  I am trying to sort a list with text box inputs. I have successfully included the text boxes by setting dragSelectorExclude to an empty string.  

But when you click on a text box, the plug-in won't allow you to enter text in the box - it just assumes you want to drag. Is there a way to set the plugin to check for a single click, give focus to the text box, and temporarily turn off the dragging action?  That way the text box could still be used to enter text. On mousedown, it would resume the dragging action. 

Thanks for your help mcm.

Feb 19, 2013 at 10:06 AM
If the jquery.dragsort.js file in the grabItem function, if you remove "e.preventDefault();" then you will be able to click into a textbox to enter text.