aboutsummaryrefslogtreecommitdiff
path: root/resources/assets/javascripts/bootstrap/data_secure.js
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-01-27 14:53:21 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2022-01-27 14:53:21 +0000
commitbd7c1e42c2d8c9dfff3c7c979f748d338b0247c6 (patch)
treeeb77e702f62e0c88b6e9523b778c88ac02db937e /resources/assets/javascripts/bootstrap/data_secure.js
parent4d0b5284a6eac8927644d7aba3818d0cb3848064 (diff)
exclude elements with [data-secure] from nested checks, fixes #611
Diffstat (limited to 'resources/assets/javascripts/bootstrap/data_secure.js')
-rw-r--r--resources/assets/javascripts/bootstrap/data_secure.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/assets/javascripts/bootstrap/data_secure.js b/resources/assets/javascripts/bootstrap/data_secure.js
index 3837df7..a1a5ac7 100644
--- a/resources/assets/javascripts/bootstrap/data_secure.js
+++ b/resources/assets/javascripts/bootstrap/data_secure.js
@@ -94,7 +94,7 @@ function detectChanges(context) {
var data = $(this).data().secure;
var config = normalizeConfig(data);
- var items = $(this).is('form') ? $(this).find(':input') : $(this);
+ var items = $(this).is('form') ? $(this).find(':input:not([data-secure])') : $(this);
if (config.always === true) {
changed = true;