summaryrefslogtreecommitdiffstats
path: root/modules-available/locations
diff options
context:
space:
mode:
authorSimon Rettberg2020-12-16 15:43:28 +0100
committerSimon Rettberg2020-12-16 15:43:28 +0100
commita7b1824b5afbc81f89af10794c0f85cde927fbd6 (patch)
tree4f5d2edc1d854a735f64e66aa33663fd9edf8383 /modules-available/locations
parent[locations] Avoid potentially duplicate ids in ajax fragments (diff)
downloadslx-admin-a7b1824b5afbc81f89af10794c0f85cde927fbd6.tar.gz
slx-admin-a7b1824b5afbc81f89af10794c0f85cde927fbd6.tar.xz
slx-admin-a7b1824b5afbc81f89af10794c0f85cde927fbd6.zip
[locations] openingtimes: fix switch to expert mode
Diffstat (limited to 'modules-available/locations')
-rw-r--r--modules-available/locations/templates/ajax-opening-location.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/locations/templates/ajax-opening-location.html b/modules-available/locations/templates/ajax-opening-location.html
index 3207fcd7..9d4e6f98 100644
--- a/modules-available/locations/templates/ajax-opening-location.html
+++ b/modules-available/locations/templates/ajax-opening-location.html
@@ -4,7 +4,7 @@
<div class="simple-mode">
<div align="right" style="margin-bottom: 10px;">
- <a href="#" class="btn btn-default btn-sm" id="btn-show-expert">{{lang_expertMode}}</a>
+ <a href="#" class="btn btn-default btn-sm btn-show-expert">{{lang_expertMode}}</a>
</div>
<div class="clearfix"></div>
<table class="table table-condensed" style="margin-bottom:0">
@@ -200,7 +200,7 @@
$loc.find('.btn-show-expert').click(function (e) {
e.preventDefault();
- scheduleData = simpleToExpert();
+ scheduleData = simpleToExpert($loc);
for (var i = 0; i < scheduleData.length; ++i) {
setTimepicker(newOpeningTime(scheduleData[i]).find('.timepicker2'));
}