From c3b75cdbf413e6993abd1343ccde70751bdda313 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 5 Mar 2015 14:55:28 +0000 Subject: [PATCH] Give a type button to toolbar's button to not be able to do auto submission, because of our form tag --- etemplate/js/et2_widget_toolbar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/etemplate/js/et2_widget_toolbar.js b/etemplate/js/et2_widget_toolbar.js index f7c58d4f47..944993fe4e 100644 --- a/etemplate/js/et2_widget_toolbar.js +++ b/etemplate/js/et2_widget_toolbar.js @@ -395,6 +395,7 @@ var et2_toolbar = et2_DOMWidget.extend([et2_IInput], .addClass("et2_button et2_button_text et2_button_with_image") .attr('id', this.id+'-'+action.id) .attr('title', (action.hint ? action.hint : action.caption)) + .attr('type', 'button') .appendTo(this.preference[action.id]?this.actionbox.children()[1]:$j('[data-group='+action.group+']',this.actionlist)); if (action && action.checkbox)