Paramjit Singh Sahota(OpenERP) has proposed merging 
lp:~openerp-dev/openerp-web/trunk-improve-bounce-effect-nocontent-kanban-list-psa
 into lp:~openerp-dev/openerp-web/trunk-improve-bounce-effect.

Requested reviews:
  OpenERP R&D Team (openerp-dev)

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-improve-bounce-effect-nocontent-kanban-list-psa/+merge/123920

Hello Sir,

     I had added the code for "click inside a menu tip" where their is 
"nocontent" than the CREATE button will bounce itz in kanban view and list view.

Thankz You,
   PSA.
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-improve-bounce-effect-nocontent-kanban-list-psa/+merge/123920
Your team OpenERP R&D Team is requested to review the proposed merge of 
lp:~openerp-dev/openerp-web/trunk-improve-bounce-effect-nocontent-kanban-list-psa
 into lp:~openerp-dev/openerp-web/trunk-improve-bounce-effect.
=== modified file 'addons/web/static/src/js/view_list.js'
--- addons/web/static/src/js/view_list.js	2012-09-11 06:36:07 +0000
+++ addons/web/static/src/js/view_list.js	2012-09-12 10:15:34 +0000
@@ -830,6 +830,10 @@
         this.$el.prepend(
             $('<div class="oe_view_nocontent">').html(this.options.action.help)
         );
+        var create_nocontent = this.$buttons;
+        this.$el.find('.oe_view_nocontent').click(function() {
+            create_nocontent.effect('bounce', {distance: 18, times: 5}, 150)
+        });
     }
 });
 instance.web.ListView.List = instance.web.Class.extend( /** @lends instance.web.ListView.List# */{

=== modified file 'addons/web_kanban/static/src/js/kanban.js'
--- addons/web_kanban/static/src/js/kanban.js	2012-09-06 17:42:05 +0000
+++ addons/web_kanban/static/src/js/kanban.js	2012-09-12 10:15:34 +0000
@@ -427,6 +427,10 @@
         this.$el.prepend(
             $('<div class="oe_view_nocontent">').html(this.options.action.help)
         );
+        var create_nocontent = this.$buttons;
+        this.$el.find('.oe_view_nocontent').click(function() {
+            create_nocontent.effect('bounce', {distance: 18, times: 5}, 150)
+        });
     }
 });
 

_______________________________________________
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