Sidebar item double-click should not close open editors.

This commit is contained in:
Oliver Hamlet
2015-01-02 18:11:49 +00:00
parent fbdd9354f2
commit 32d97bd339
+4 -1
View File
@@ -994,7 +994,10 @@ function handleSidebarClick(evt) {
document.getElementById('main').lastElementChild.scrollToItem(evt.target.getAttribute('data-index'));
if (evt.type == 'dblclick') {
document.getElementById(evt.target.getAttribute('data-id')).onShowEditor();
var card = document.getElementById(evt.target.getAttribute('data-id'));
if (!card.classList.contains('flip')) {
document.getElementById(evt.target.getAttribute('data-id')).onShowEditor();
}
}
}
}