diff options
author | Simon Rettberg | 2022-04-28 17:52:15 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-04-28 17:52:15 +0200 |
commit | d95506e218f5935f491b715aa70a07c6ef9a94a4 (patch) | |
tree | 5bfc360ca2414fa0b2eef9cd6b40a90176cbcfd3 /modules-available/locations/templates/ajax-opening-location.html | |
parent | [statistics] ID45_live: Filter 0 if not explicitly matching for it (diff) | |
download | slx-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/templates/ajax-opening-location.html')
-rw-r--r-- | modules-available/locations/templates/ajax-opening-location.html | 5 |
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> |