aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-10-05 03:07:49 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-10-05 03:07:49 +0200
commit8376c96825a91009a0aa3993c9a64de1e4555a66 (patch)
treef821973da54c557df76432862dcff3fb5b0ef20e
parentRemove old edit mode. (diff)
downloadcalp-8376c96825a91009a0aa3993c9a64de1e4555a66.tar.gz
calp-8376c96825a91009a0aa3993c9a64de1e4555a66.tar.xz
whitespace fixes.
-rw-r--r--static/script.js24
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