diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-10-05 03:07:49 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-10-05 03:07:49 +0200 |
commit | 8376c96825a91009a0aa3993c9a64de1e4555a66 (patch) | |
tree | f821973da54c557df76432862dcff3fb5b0ef20e | |
parent | Remove old edit mode. (diff) | |
download | calp-8376c96825a91009a0aa3993c9a64de1e4555a66.tar.gz calp-8376c96825a91009a0aa3993c9a64de1e4555a66.tar.xz |
whitespace fixes.
Diffstat (limited to '')
-rw-r--r-- | static/script.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/static/script.js b/static/script.js index dce70ee5..894ebb20 100644 --- a/static/script.js +++ b/static/script.js @@ -364,19 +364,19 @@ function place_in_edit_mode (event) { let calendar_dropdown = document.getElementById('calendar-dropdown-template').firstChild.cloneNode(true); let [_, calclass] = popup.classList.find(/^CAL_/); - label: { - for (let [i, option] of calendar_dropdown.childNodes.entries()) { - if (option.value === calclass.substr(4)) { - calendar_dropdown.selectedIndex = i; - break label; - } - } - /* no match, try find default calendar */ - let t; - if ((t = calendar_dropdown.querySelector("[selected]"))) { - event.properties.calendar = t.value; - } + label: { + for (let [i, option] of calendar_dropdown.childNodes.entries()) { + if (option.value === calclass.substr(4)) { + calendar_dropdown.selectedIndex = i; + break label; + } } + /* no match, try find default calendar */ + let t; + if ((t = calendar_dropdown.querySelector("[selected]"))) { + event.properties.calendar = t.value; + } + } /* Instant change while user is stepping through would be |