From b16e83e2ef7664ee4b091aac034df3ced99066b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 3 Feb 2016 21:28:02 +0100 Subject: [PATCH] Prevent submit on search_box issue5289 review19841003 --- src/screen.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/screen.js b/src/screen.js index 0114dec298..210fc626f2 100644 --- a/src/screen.js +++ b/src/screen.js @@ -348,7 +348,10 @@ this.search_modal = dialog.modal; this.search_form = dialog.content; this.search_form.addClass('form-horizontal'); - this.search_form.submit(search); + this.search_form.submit(function(e) { + search(); + e.preventDefault(); + }); var fields = []; var field;