Jiten (OpenERP) has proposed merging
lp:~openerp-dev/openerp-web/trunk-bounce-effect-listview into lp:openerp-web.
Requested reviews:
OpenERP R&D Web Team (openerp-dev-web)
For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bounce-effect-listview/+merge/116799
I have found that,
By mistake some code is missed during merge branch of 'add bounce effect' in
trunk web.
So, i provide that missed code here for latest trunk web,
Improved bounce effect on button 'Create' when user click on empty row of
listview.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bounce-effect-listview/+merge/116799
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openerp-web/trunk-bounce-effect-listview.
=== modified file 'addons/web/static/src/js/view_list.js'
--- addons/web/static/src/js/view_list.js 2012-07-26 00:23:18 +0000
+++ addons/web/static/src/js/view_list.js 2012-07-26 06:14:55 +0000
@@ -1016,6 +1016,14 @@
throw new Error("Could not find id in dataset");
}
self.row_clicked(e);
+ } else {
+ /*
+ * Add bounce effect on button 'Create' when click on empty row of list.
+ */
+ if (opts.options.$buttons) {
+ var create_btn = $(opts.options.$buttons.find('.oe_list_add'));
+ create_btn.wrap('<div>').css('margin-right','4px').addClass('oe_left oe_bounce');
+ }
}
});
},
_______________________________________________
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