From 451862179058f8bb2e3d39c6187015f5d9135424 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sat, 14 Nov 2020 08:18:20 +0100 Subject: [PATCH] Move removeCompleted --- editor/src/menu.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/editor/src/menu.js b/editor/src/menu.js index 4021848..6271e58 100644 --- a/editor/src/menu.js +++ b/editor/src/menu.js @@ -114,6 +114,15 @@ function connectContextMenu(editor) { 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: { name: 'Sort', 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 // - Sort // - Date (on item) (new-old)