aboutsummaryrefslogtreecommitdiff
path: root/resources/assets/javascripts/lib
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2026-03-16 14:10:34 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2026-03-16 14:10:34 +0100
commit4f265a61c22ad367d4c5e046ce07e7a5c0c13c64 (patch)
tree983f129cbc04a823ffcb56854898be1e14746d4d /resources/assets/javascripts/lib
parente9687744733f40f4290111eadeaafa4213132b32 (diff)
fix selection of elements on timesrooms dialog. fixes #6364
Closes #6364 Merge request studip/studip!4822
Diffstat (limited to 'resources/assets/javascripts/lib')
-rw-r--r--resources/assets/javascripts/lib/dialog.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/resources/assets/javascripts/lib/dialog.js b/resources/assets/javascripts/lib/dialog.js
index 1eca967..656b09e 100644
--- a/resources/assets/javascripts/lib/dialog.js
+++ b/resources/assets/javascripts/lib/dialog.js
@@ -615,8 +615,8 @@ const Dialog = {
// Actual dialog handler
function dialogHandler(event) {
- if (!event.isDefaultPrevented() && checkValidity(event.currentTarget)) {
- let target = $(event.target).closest('[data-dialog]');
+ if (!event.isDefaultPrevented() && checkValidity(this)) {
+ let target = $(this).closest('[data-dialog]');
let options = target.data().dialog;
if (
@@ -634,13 +634,13 @@ const Dialog = {
}
function clickHandler(event) {
- if (!event.isDefaultPrevented() && checkValidity(event.currentTarget)) {
- const element = $(event.target).closest(':submit,input[type="image"]');
+ if (!event.isDefaultPrevented() && checkValidity(this)) {
+ const element = $(this).closest(':submit,input[type="image"]');
const form = element.closest('form');
const action = element.attr('formaction');
form.data('triggeredBy', {
- name: $(event.target).attr('name'),
- value: $(event.target).val()
+ name: $(this).attr('name'),
+ value: $(this).val()
});
if (action) {
form.data('formaction', action);