[SSE] Move sheet: drag and drop (custom type)

This commit is contained in:
Julia Svinareva 2020-02-18 17:32:52 +03:00
parent e56033fee2
commit 92e153b54a

View file

@ -231,11 +231,11 @@ define([
arr.push({type: 'names', value: arrName});
arr.push({type: 'key', value: Common.Utils.InternalSettings.get("sse-doc-info-key")});
var json = JSON.stringify(arr);
dataTransfer.setData("text/plain", json);
dataTransfer.setData("onlyoffice", json);
this.dropTabs = selectTabs;
}, this),
'tab:drop': _.bind(function (dataTransfer, index) {
var data = dataTransfer.getData("text/plain");
var data = dataTransfer.getData("onlyoffice");
if (data) {
var arrData = JSON.parse(data);
if (arrData[0].type === 'onlyoffice') {