projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94624b7
)
[ADD] handling of reset button on searchview
author
Xavier Morel
<xmo@openerp.com>
Thu, 3 May 2012 19:31:10 +0000
(21:31 +0200)
committer
Xavier Morel
<xmo@openerp.com>
Thu, 3 May 2012 19:31:10 +0000
(21:31 +0200)
bzr revid: xmo@openerp.com-
20120503193110
-aqmeo3dz94y49fg0
addons/web/static/src/js/search.js
patch
|
blob
|
history
diff --git
a/addons/web/static/src/js/search.js
b/addons/web/static/src/js/search.js
index
780e096
..
a17839f
100644
(file)
--- a/
addons/web/static/src/js/search.js
+++ b/
addons/web/static/src/js/search.js
@@
-259,6
+259,10
@@
instance.web.SearchView = instance.web.Widget.extend(/** @lends instance.web.Sea
});
}
+ this.$element.on('click', '.oe_searchview_clear', function (e) {
+ e.stopImmediatePropagation();
+ self.query.reset();
+ });
this.$element.on('click', '.oe_searchview_unfold_drawer', function (e) {
e.stopImmediatePropagation();
self.$element.toggleClass('oe_searchview_open_drawer');