Fixed regression introduced in fae85f04c1 where disableSelection() was no longer optional

Disable selection is now forced when the "allow drag and drop" is checked
This commit is contained in:
UndefinedOffset 2015-11-30 15:53:09 -04:00
parent b21e008b94
commit afffa5b09e

View File

@ -67,7 +67,11 @@
form.removeClass('loading'); form.removeClass('loading');
}); });
} }
}).disableSelection(); });
if(refCheckbox.hasClass('gridfield-sortablerows-noselection') || $(this).is(':checked')) {
gridField.find('tbody').disableSelection();
}
}, },
onchange: function(e) { onchange: function(e) {