Anandkumar (OpenERP) has proposed merging 
lp:~openerp-dev/openerp-web/page_view_bounce_effect-pan 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/page_view_bounce_effect-pan/+merge/124380

Hello Sir,
          I have improve the code for page view when user click any field then 
in response 
"edit" buton should bounce.

Thanks,
pan
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/page_view_bounce_effect-pan/+merge/124380
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/page_view_bounce_effect-pan.
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js	2012-09-12 17:16:24 +0000
+++ addons/web/static/src/js/view_form.js	2012-09-14 10:41:26 +0000
@@ -159,10 +159,11 @@
         this.has_been_loaded.resolve();
 
         // Add bounce effect on button 'Edit' when click on readonly page view.
-        this.$el.find(".oe_form_field,label").on('click', function (e) {
+        this.$el.find(".oe_form_group_row,.oe_form_field,label").on('click', function (e) {
             if(self.get("actual_mode") == "view") {
                 var $button = self.options.$buttons.find(".oe_form_button_edit");
                 $button.effect('bounce', {distance: 18, times: 5}, 150)
+                e.stopPropagation();
             }
         });
 

_______________________________________________
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

Reply via email to