Explorar el Código

Add event for deny button on triggerJobsAfterAjaxCall

Amauri CHAMPEAUX hace 4 años
padre
commit
65eef142b6
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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);
+            });
+        }
     }
 };