Commit 55c94de9 authored by Florian Moser's avatar Florian Moser
Browse files

Prevent closing event dialog when selection is active

parent be53b114
......@@ -29,6 +29,10 @@ function initializeEvents() {
});
$(".event").on("click", function () {
if (window.getSelection().toString()) {
return;
}
$(this).toggleClass("active");
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment