From 0936e5e71eee001233d95079c688b83bfd998dc7 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 18 Feb 2016 13:49:45 +0000 Subject: [PATCH] Fix searchbox does not keep the search value after reload --- etemplate/js/et2_widget_textbox.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etemplate/js/et2_widget_textbox.js b/etemplate/js/et2_widget_textbox.js index 6da387e8cc..7373b638a8 100644 --- a/etemplate/js/et2_widget_textbox.js +++ b/etemplate/js/et2_widget_textbox.js @@ -558,6 +558,11 @@ var et2_searchbox = et2_textbox.extend( get_value:function(){ return this.search.input.val(); }, + + set_value: function (_value){ + this._super.apply(this,arguments); + if (this.search) this.search.input.val(_value); + }, /** * override doLoadingFinished in order to set initial state