[SSE] Fix drag and drop of pivot table fields

This commit is contained in:
JuliaSvinareva 2021-04-06 12:40:01 +03:00
parent bd9ba3da62
commit 96d1c92957

View file

@ -214,7 +214,7 @@ define([
onFieldsDragStart: function (item, index, event) {
this._state.field = {record: item.model};
event.originalEvent.dataTransfer.effectAllowed = 'move';
event.originalEvent.dataTransfer.setDragImage(this.getDragElement(item.model.get('value')), 14, 14);
!Common.Utils.isIE && event.originalEvent.dataTransfer.setDragImage(this.getDragElement(item.model.get('value')), 14, 14);
this.pivotIndex = index;
this.fromListView = this.fieldsList.$el[0].id;
},
@ -222,7 +222,7 @@ define([
onItemsDragStart: function (type, listview, item, index, event) {
this._state.field = {record: item.model, type: type};
event.originalEvent.dataTransfer.effectAllowed = 'move';
event.originalEvent.dataTransfer.setDragImage(this.getDragElement(item.model.get('value')), 14, 14);
!Common.Utils.isIE && event.originalEvent.dataTransfer.setDragImage(this.getDragElement(item.model.get('value')), 14, 14);
this.itemIndex = index;
this.pivotIndex = listview.store.at(index).attributes.pivotIndex;
this.fromListView = listview.$el[0].id;