[SSE] Move sheet: drag and drop
This commit is contained in:
parent
ecdd310efd
commit
2f223cfb5e
|
@ -240,6 +240,9 @@ define([
|
|||
lockDrag = true;
|
||||
}
|
||||
});
|
||||
if (this.bar.selectTabs.length === this.bar.tabs.length || this.bar.tabs.length === 1) {
|
||||
lockDrag = true;
|
||||
}
|
||||
this.bar.$el.find('ul > li > span').attr('draggable', !lockDrag);
|
||||
tab.changeState();
|
||||
} else {
|
||||
|
|
|
@ -202,6 +202,7 @@ define([
|
|||
|
||||
}, this),
|
||||
'tab:dragstart': _.bind(function (dataTransfer, selectTabs) {
|
||||
this.api.asc_closeCellEditor();
|
||||
var arrTabs = [],
|
||||
arrName = [],
|
||||
me = this;
|
||||
|
@ -238,7 +239,7 @@ define([
|
|||
var data = dataTransfer.getData("onlyoffice");
|
||||
if (data) {
|
||||
var arrData = JSON.parse(data);
|
||||
if (arrData[0].type === 'onlyoffice') {
|
||||
if (arrData) {
|
||||
var key = _.findWhere(arrData, {type: 'key'}).value;
|
||||
if (Common.Utils.InternalSettings.get("sse-doc-info-key") === key) {
|
||||
this.api.asc_moveWorksheet(index, _.findWhere(arrData, {type: 'indexes'}).value);
|
||||
|
|
Loading…
Reference in a new issue