[SSE] Fix drag and drop of pivot table fields
This commit is contained in:
parent
bd9ba3da62
commit
96d1c92957
|
@ -214,7 +214,7 @@ define([
|
||||||
onFieldsDragStart: function (item, index, event) {
|
onFieldsDragStart: function (item, index, event) {
|
||||||
this._state.field = {record: item.model};
|
this._state.field = {record: item.model};
|
||||||
event.originalEvent.dataTransfer.effectAllowed = 'move';
|
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.pivotIndex = index;
|
||||||
this.fromListView = this.fieldsList.$el[0].id;
|
this.fromListView = this.fieldsList.$el[0].id;
|
||||||
},
|
},
|
||||||
|
@ -222,7 +222,7 @@ define([
|
||||||
onItemsDragStart: function (type, listview, item, index, event) {
|
onItemsDragStart: function (type, listview, item, index, event) {
|
||||||
this._state.field = {record: item.model, type: type};
|
this._state.field = {record: item.model, type: type};
|
||||||
event.originalEvent.dataTransfer.effectAllowed = 'move';
|
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.itemIndex = index;
|
||||||
this.pivotIndex = listview.store.at(index).attributes.pivotIndex;
|
this.pivotIndex = listview.store.at(index).attributes.pivotIndex;
|
||||||
this.fromListView = listview.$el[0].id;
|
this.fromListView = listview.$el[0].id;
|
||||||
|
|
Loading…
Reference in a new issue