mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-15 15:41:19 +00:00
drag notebooks change status
This commit is contained in:
@@ -267,6 +267,14 @@ Notebook.getTreeSetting = function(isSearch, isShare) {
|
|||||||
// {siblings: [id1, id2], parentNotebookId: 'xx', curNotebookId: 'yy'}
|
// {siblings: [id1, id2], parentNotebookId: 'xx', curNotebookId: 'yy'}
|
||||||
NotebookService.dragNotebooks(ajaxData.curNotebookId, ajaxData.parentNotebookId, ajaxData.siblings);
|
NotebookService.dragNotebooks(ajaxData.curNotebookId, ajaxData.parentNotebookId, ajaxData.siblings);
|
||||||
|
|
||||||
|
// 设置dirty状态
|
||||||
|
// 不需要设置parentNotebookId
|
||||||
|
var ids = [ajaxData.curNotebookId].concat(ajaxData.siblings || []);
|
||||||
|
ids.forEach(function (notebookId) {
|
||||||
|
if (notebookId) {
|
||||||
|
Notebook.setDirtyOrNew(notebookId, true);
|
||||||
|
}
|
||||||
|
});
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
Notebook.changeNav();
|
Notebook.changeNav();
|
||||||
}, 100);
|
}, 100);
|
||||||
|
Reference in New Issue
Block a user