Skip to content
Snippets Groups Projects
Commit e16dd40c authored by Rafael Ostertag's avatar Rafael Ostertag
Browse files

Disabled standard submit on form.

parent 876d5a66
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,10 @@ var QfqNS = QfqNS || {};
// On <input> elements, we specifically bind this events, in order to update the formChanged property
// immediately, not only after loosing focus. Same goes for <textarea>
this.$form.find("input, textarea").on("input paste", this.changeHandler.bind(this));
this.$form.on('submit', function (event) {
event.preventDefault();
});
};
n.Form.prototype.on = n.EventEmitter.onMixin;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment