Skip to content

Instantly share code, notes, and snippets.

@jdlich
Created October 29, 2010 19:21
Show Gist options
  • Save jdlich/654204 to your computer and use it in GitHub Desktop.
Save jdlich/654204 to your computer and use it in GitHub Desktop.
$(document).ready(function() {
(function ($, fluid) {
fluid.reorderListWithHandlers = function (container, options) {
options = options || {};
var addHandlers = function(element) {
$(element).children().prepend('<a class="handle" href="#"></a>');
};
var reorderListOptions = {
selectors: {
movables: ".movable",
grabHandle: ".handle"
}
};
addHandlers(container);
fluid.reorderList(container, reorderListOptions);
};
})(jQuery, fluid_1_2);
fluid.reorderListWithHandlers("#reorder");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment