[SSE] Drag and drop for move sheet

This commit is contained in:
Julia Svinareva 2019-12-12 14:35:57 +03:00
parent 13494b21d9
commit 5e47e79659
2 changed files with 8 additions and 0 deletions

View file

@ -144,6 +144,7 @@ define([
}
me.drag = undefined;
me.bar.trigger('tab:drop', this);
}
}
function dragMove (event) {
@ -187,6 +188,7 @@ define([
$(document).off('mouseup.tabbar');
$(document).off('mousemove.tabbar', dragMove);
});
this.bar.trigger('tab:drag', this.bar.selectTabs);
}
}
}

View file

@ -200,6 +200,12 @@ define([
me.fireEvent('sheet:move', [undefined, false, true, tabIndex, index]);
}
}, this),
'tab:drag' : _.bind(function (selectTabs) {
}, this),
'tab:drop' : _.bind(function (selectTabs) {
}, this)
});