Improve card and list sortable drag

Use a custom build of jquery-ui with only the plugins we need (instead
of including everything).

Fix a tricky bug of conflict between Blaze reactive updates and
jquery-ui (which caused cards to sometimes disappear).
This commit is contained in:
Maxime Quandalle 2015-06-17 12:51:03 +02:00
parent 879fc47b53
commit fad4cba5e2
7 changed files with 26 additions and 18 deletions

View file

@ -72,10 +72,10 @@ BlazeComponent.extendComponent({
self.$(lists).sortable({
tolerance: 'pointer',
appendTo: '.js-lists',
helper: 'clone',
items: '.js-list:not(.js-list-composer)',
placeholder: 'list placeholder',
distance: 7,
start: function(evt, ui) {
ui.placeholder.height(ui.helper.height());
Popup.close();