Vidhin Mehta (OpenERP) has proposed merging
lp:~openerp-dev/openerp-web/trunk-bug-1017809-vme into lp:openerp-web.
Requested reviews:
OpenERP R&D Web Team (openerp-dev-web)
Related bugs:
Bug #1017809 in OpenERP Web: "Buttons are not working."
https://bugs.launchpad.net/openerp-web/+bug/1017809
For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-1017809-vme/+merge/112012
jquey find method ignore root element in search,use filter to search "button".
--
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-1017809-vme/+merge/112012
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openerp-web/trunk-bug-1017809-vme.
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js 2012-06-25 19:52:25 +0000
+++ addons/web/static/src/js/view_form.js 2012-06-26 07:03:26 +0000
@@ -1621,7 +1621,7 @@
},
start: function() {
this._super.apply(this, arguments);
- var $button = this.$element.find('button');
+ var $button = this.$element.filter("button");
$button.click(this.on_click);
if (this.node.attrs.help || instance.connection.debug) {
this.do_attach_tooltip();
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp