Prevent opening editor from sidebar when sorting

This commit is contained in:
Oliver Hamlet
2016-11-13 08:24:59 +00:00
parent 29b1444886
commit 2521127037
+2 -1
View File
@@ -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();
}
}