From d95506e218f5935f491b715aa70a07c6ef9a94a4 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 28 Apr 2022 17:52:15 +0200 Subject: [locations] Openingtimes: Disable inheritance when adding row --- modules-available/locations/templates/ajax-opening-location.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules-available/locations') 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(); + } + }); })(); -- cgit v1.2.3-55-g7522