Przeglądaj źródła

Add event for deny button on triggerJobsAfterAjaxCall

Amauri CHAMPEAUX 4 lat temu
rodzic
commit
65eef142b6
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      tarteaucitron.js

+ 6 - 0
tarteaucitron.js

@@ -1844,5 +1844,11 @@ var tarteaucitron = {
                 tarteaucitron.userInterface.respond(this, true);
             });
         }
+        var denyBtns = document.getElementsByClassName("tarteaucitronDeny");
+        for (i = 0; i < denyBtns.length; i++) {
+            tarteaucitron.addClickEventToElement(denyBtns[i], function () {
+                tarteaucitron.userInterface.respond(this, false);
+            });
+        }
     }
 };