Skip to content

Instantly share code, notes, and snippets.

@yellow1912
Created September 23, 2019 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yellow1912/ee1921c8618e4acdfbbfd831df45ff15 to your computer and use it in GitHub Desktop.
Save yellow1912/ee1921c8618e4acdfbbfd831df45ff15 to your computer and use it in GitHub Desktop.
Sample closure output
(function(b) {
b.ready(function() {
for (var d = b.querySelectorAll(".nl-widget-sleek-form-contact"), c = 0; c < d.length; c++) {
var a = b.querySelector("form", d[c]);
b.addEventListener(a, "submit", function(a) {
console.log("a");
b.querySelector("button", a.target).setAttribute("disabled", "disabled");
});
var e = ni.provider.get("service").get("event");
a = ni.provider.get("const").get("plugin.form.events").SUBMIT_DONE.replace("%s", a.getAttribute("data-form-id"));
e.on(a, a, function(a) {
console.log("b");
b.querySelector("button", a.form).removeAttribute("disabled");
});
}
});
})(nu);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment