]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/webhook-events.js
Added more complexity in an attempt to make ldap host failover fit
[bookstack] / resources / js / components / webhook-events.js
index 54080d36e22693ed61e47abac0f5454ccdd856b0..aa50aa9d883f1541cbf08eed3d9865b65c252789 100644 (file)
@@ -8,7 +8,7 @@ class WebhookEvents {
 
     setup() {
         this.checkboxes = this.$el.querySelectorAll('input[type="checkbox"]');
-        this.allCheckbox = this.$refs.all;
+        this.allCheckbox = this.$el.querySelector('input[type="checkbox"][value="all"]');
 
         this.$el.addEventListener('change', event => {
             if (event.target.checked && event.target === this.allCheckbox) {