Browse Source

Merge branch 'master' of https://github.com/AmauriC/tarteaucitron.js

Amauri CHAMPEAUX 4 years ago
parent
commit
987b984f79
1 changed files with 9 additions and 0 deletions
  1. 9 0
      tarteaucitron.js

+ 9 - 0
tarteaucitron.js

@@ -1834,5 +1834,14 @@ var tarteaucitron = {
                 e.attachEvent("onclick", func);
             }
         }
+    },
+    "triggerJobsAfterAjaxCall": function() {
+        tarteaucitron.job.forEach(function(e) { tarteaucitron.job.push(e) });
+        var allowBtns = document.getElementsByClassName("tarteaucitronAllow");
+        for (i = 0; i < allowBtns.length; i++) {
+            tarteaucitron.addClickEventToElement(allowBtns[i], function () {
+                tarteaucitron.userInterface.respond(this, true);
+            });
+        }
     }
 };