From 2521127037884880b5658230233bc614d463ce0c Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sun, 13 Nov 2016 08:24:59 +0000 Subject: [PATCH] Prevent opening editor from sidebar when sorting --- src/gui/html/js/dom.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/html/js/dom.js b/src/gui/html/js/dom.js index 70cf19bd..7c5458d4 100644 --- a/src/gui/html/js/dom.js +++ b/src/gui/html/js/dom.js @@ -220,7 +220,8 @@ case that has happened. */ window.getSelection().removeAllRanges(); - if (document.body.getAttribute('data-state') !== 'editing') { + if (document.body.getAttribute('data-state') !== 'editing' + && document.body.getAttribute('data-state') !== 'sorting') { document.getElementById(evt.target.getAttribute('data-id')).onShowEditor(); } }