aboutsummaryrefslogtreecommitdiff
path: root/resources/assets/javascripts/bootstrap
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-10-14 06:08:52 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-10-14 06:08:52 +0000
commit3400fd60a8561e87072ced4228db809ac3fa1497 (patch)
treec36d9153af0d438a47a1e4c44b549fee18d1539a /resources/assets/javascripts/bootstrap
parent6fa7352b78ad692edf2e5c29c38cae8d45e887b0 (diff)
resurrect proxy triggering, fixes #4688
Closes #4688 Merge request studip/studip!3488
Diffstat (limited to 'resources/assets/javascripts/bootstrap')
-rw-r--r--resources/assets/javascripts/bootstrap/studip_helper_attributes.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/resources/assets/javascripts/bootstrap/studip_helper_attributes.js b/resources/assets/javascripts/bootstrap/studip_helper_attributes.js
index 9f24530..6566a3d 100644
--- a/resources/assets/javascripts/bootstrap/studip_helper_attributes.js
+++ b/resources/assets/javascripts/bootstrap/studip_helper_attributes.js
@@ -45,6 +45,10 @@ $(document).on('change', proxy_elements_selector, function (event, force) {
const event = new Event('change');
element.dispatchEvent(event);
+
+ if (element.matches('[data-proxyfor]')) {
+ $(element).trigger('change', [true]);
+ }
});
}
}).on('update.proxy', proxy_elements_selector, function () {