mirror of
https://github.com/documize/community.git
synced 2025-07-21 22:29:41 +02:00
edit/delete reusable content blocks
This commit is contained in:
parent
f72b02cbb2
commit
5d3ddaa2d9
5 changed files with 28 additions and 47 deletions
|
@ -186,18 +186,6 @@ export default Controller.extend(TooltipMixin, {
|
|||
this.get('documentService').getPages(this.get('document.id')).then( (pages) => {
|
||||
this.set('pages', pages);
|
||||
});
|
||||
// _.each(changes, (change) => {
|
||||
// let pageContent = _.findWhere(this.get('pages'), {
|
||||
// id: change.pageId
|
||||
// });
|
||||
|
||||
// if (is.not.undefined(pageContent)) {
|
||||
// pageContent.set('sequence', change.sequence);
|
||||
// }
|
||||
// });
|
||||
|
||||
// this.set('pages', this.get('pages').sortBy('sequence'));
|
||||
// this.get('target._routerMicrolib').refresh();
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -206,22 +194,6 @@ export default Controller.extend(TooltipMixin, {
|
|||
this.get('documentService').getPages(this.get('document.id')).then( (pages) => {
|
||||
this.set('pages', pages);
|
||||
});
|
||||
// _.each(changes, (change) => {
|
||||
// let pageContent = _.findWhere(this.get('pages'), {
|
||||
// id: change.pageId
|
||||
// });
|
||||
|
||||
// if (is.not.undefined(pageContent)) {
|
||||
// pageContent.set('level', change.level);
|
||||
// }
|
||||
// });
|
||||
|
||||
// let pages = this.get('pages');
|
||||
// pages = pages.sortBy('sequence');
|
||||
|
||||
// this.set('pages', []);
|
||||
// this.set('pages', pages);
|
||||
// this.get('target._routerMicrolib').refresh();
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -233,7 +205,7 @@ export default Controller.extend(TooltipMixin, {
|
|||
if (!$(jumpTo).inView()) {
|
||||
$(jumpTo).velocity("scroll", { duration: 250, offset: -100 });
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
onTagChange(tags) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue