From ab07571f86986dadb5ab824444128619078e702c Mon Sep 17 00:00:00 2001
From: Simon Rettberg
Date: Wed, 16 Dec 2020 16:03:19 +0100
Subject: [locations] Fix adding expert rows; tweak WOL/SD style some more
---
.../locations/templates/ajax-opening-location.html | 28 ++++++++++++++--------
1 file changed, 18 insertions(+), 10 deletions(-)
(limited to 'modules-available/locations/templates/ajax-opening-location.html')
diff --git a/modules-available/locations/templates/ajax-opening-location.html b/modules-available/locations/templates/ajax-opening-location.html
index 9d4e6f98..c3a32fd1 100644
--- a/modules-available/locations/templates/ajax-opening-location.html
+++ b/modules-available/locations/templates/ajax-opening-location.html
@@ -95,7 +95,7 @@
-
{{/rebootcontrol}}
@@ -173,7 +181,7 @@
{{#expertMode}}
for (var i = 0; i < scheduleData.length; ++i) {
- newOpeningTime(scheduleData[i]);
+ newOpeningTime($loc, scheduleData[i]);
}
{{/expertMode}}
{{^expertMode}}
@@ -195,14 +203,14 @@
$loc.find('.new-openingtime').click(function (e) {
e.preventDefault();
- setTimepicker(newOpeningTime({}).find('.timepicker2'));
+ setTimepicker(newOpeningTime($loc, {}).find('.timepicker2'));
});
$loc.find('.btn-show-expert').click(function (e) {
e.preventDefault();
scheduleData = simpleToExpert($loc);
for (var i = 0; i < scheduleData.length; ++i) {
- setTimepicker(newOpeningTime(scheduleData[i]).find('.timepicker2'));
+ setTimepicker(newOpeningTime($loc, scheduleData[i]).find('.timepicker2'));
}
$loc.find('.simple-mode').remove();
$loc.find('.expert-mode').show();
--
cgit v1.2.3-55-g7522