return false for onsubmit

This commit is contained in:
Jeff Becker committed 2016-05-01 10:34:05 -04:00
1 parent d217776201
commit 06ff6554d4
2 files changed
+5 -2

No files matched your search

+4 -1
View File
@@ -367,7 +367,10 @@ function init(prefix) {
}
e.onclick = postit;
var f = document.querySelector("form");
f.onsubmit = postit;
f.onsubmit = function() {
postit();
return false;
}
}