From e16dd40c5c09c0bb2b2d5d3e8fa1030d736b0a8e Mon Sep 17 00:00:00 2001
From: Rafael Ostertag <rafael.ostertag@math.uzh.ch>
Date: Tue, 10 May 2016 14:25:10 +0200
Subject: [PATCH] Disabled standard submit on form.

---
 javascript/src/Form.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/javascript/src/Form.js b/javascript/src/Form.js
index 7a7fb3995..67651ae28 100644
--- a/javascript/src/Form.js
+++ b/javascript/src/Form.js
@@ -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;
-- 
GitLab