diff --git a/src/jquery.multisortable.js b/src/jquery.multisortable.js index e43afaf..6111238 100644 --- a/src/jquery.multisortable.js +++ b/src/jquery.multisortable.js @@ -164,7 +164,10 @@ }); //enable sorting - options.cancel = settings.items + ':not(.' + settings.selectedClass + ')'; + if (options.cancel) { + options.cancel += ', '; + } + options.cancel = (options.cancel || '') + ' ' + settings.items + ':not(.' + settings.selectedClass + ')'; options.placeholder = settings.placeholder; options.start = function(event, ui) { if (ui.item.hasClass(settings.selectedClass)) { @@ -251,4 +254,4 @@ items: 'li' }; -}(jQuery); \ No newline at end of file +}(jQuery);