This commit is contained in:
parent
8de01dc68f
commit
4518621790
|
@ -114,6 +114,15 @@ function connectContextMenu(editor) {
|
||||||
editor.actions.markDone.call(editor, id)
|
editor.actions.markDone.call(editor, id)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
removeCompleted: {
|
||||||
|
name: 'Remove completed',
|
||||||
|
callback: function (key, opt) {
|
||||||
|
let item = $(this).parents('.list-item')
|
||||||
|
let id = item.attr('data-id')
|
||||||
|
editor.actions.removeCompleted.call(editor, id)
|
||||||
|
editor.render()
|
||||||
|
}
|
||||||
|
},
|
||||||
sort: {
|
sort: {
|
||||||
name: 'Sort',
|
name: 'Sort',
|
||||||
items: [
|
items: [
|
||||||
|
@ -156,16 +165,6 @@ function connectContextMenu(editor) {
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
removeCompleted: {
|
|
||||||
name: 'Remove completed',
|
|
||||||
callback: function (key, opt) {
|
|
||||||
let item = $(this).parents('.list-item')
|
|
||||||
let id = item.attr('data-id')
|
|
||||||
editor.actions.removeCompleted.call(editor, id)
|
|
||||||
editor.render()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
// - Sort
|
// - Sort
|
||||||
// - Date (on item) (new-old)
|
// - Date (on item) (new-old)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user