summaryrefslogtreecommitdiffstats
path: root/modules-available/locations
diff options
context:
space:
mode:
authorSimon Rettberg2022-04-28 17:52:15 +0200
committerSimon Rettberg2022-04-28 17:52:15 +0200
commitd95506e218f5935f491b715aa70a07c6ef9a94a4 (patch)
tree5bfc360ca2414fa0b2eef9cd6b40a90176cbcfd3 /modules-available/locations
parent[statistics] ID45_live: Filter 0 if not explicitly matching for it (diff)
downloadslx-admin-d95506e218f5935f491b715aa70a07c6ef9a94a4.tar.gz
slx-admin-d95506e218f5935f491b715aa70a07c6ef9a94a4.tar.xz
slx-admin-d95506e218f5935f491b715aa70a07c6ef9a94a4.zip
[locations] Openingtimes: Disable inheritance when adding row
Diffstat (limited to 'modules-available/locations')
-rw-r--r--modules-available/locations/templates/ajax-opening-location.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules-available/locations/templates/ajax-opening-location.html b/modules-available/locations/templates/ajax-opening-location.html
index 5c741857..967e111c 100644
--- a/modules-available/locations/templates/ajax-opening-location.html
+++ b/modules-available/locations/templates/ajax-opening-location.html
@@ -230,6 +230,11 @@
var $inheritCb = $loc.find('.openingtimes-inherited');
setInputEnabled();
$inheritCb.change(setInputEnabled);
+ $loc.find('.new-openingtime').click(function (e) {
+ if ($inheritCb.is(':checked')) {
+ $inheritCb.click();
+ }
+ });
})();
</script>