Browse Source

Added option to handle disabling draggable.

pull/47/head
ziflex 11 years ago
parent
commit
352aff627c
  1. 9
      Sortable.js
  2. 3
      Sortable.min.js

9
Sortable.js

@ -144,9 +144,13 @@
// Disable "draggable"
_find(target, 'a', _disableDraggable);
_find(target, 'img', _disableDraggable);
if (typeof options.ignore === 'undefined') {
options.ignore = 'a, img';
}
Array.prototype.forEach.call(options.ignore.split(','), function (criteria) {
_find(target, criteria.trim(), _disableDraggable);
});
if( touch ){
// Touch device support
@ -410,7 +414,6 @@
}
};
function _bind(ctx, fn){
var args = slice.call(arguments, 2);
return fn.bind ? fn.bind.apply(fn, [ctx].concat(args)) : function (){

3
Sortable.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save