[IMP]
authorAmit Patel (OpenERP) <apa@tinyerp.com>
Wed, 4 Apr 2012 13:13:30 +0000 (18:43 +0530)
committerAmit Patel (OpenERP) <apa@tinyerp.com>
Wed, 4 Apr 2012 13:13:30 +0000 (18:43 +0530)
bzr revid: apa@tinyerp.com-20120404131330-w2kzw1tz2gdh407b

addons/project/static/src/js/project.js

index e23e873..1a44444 100644 (file)
@@ -1,16 +1,13 @@
 openerp.project = function(openerp) {
     openerp.web_kanban.ProjectKanban = openerp.web_kanban.KanbanRecord.include({
         bind_events: function() {
-            self = this;
-            if(this.view.dataset.model == 'project.project') {
-                $('.oe_project_kanban_vignette').mouseover(function() {
-                    return $(this).find('.oe_project_kanban_action').show();
-                    }).mouseout(function() {
-                    return $(this).find('.oe_project_kanban_action').hide();
-                });
-                $('.dropdown-toggle').dropdown();
-            }
-            self._super();
+            $('.oe_project_kanban_vignette').mouseover(function() {
+                return $(this).find('.oe_project_kanban_action').show();
+                }).mouseout(function() {
+                return $(this).find('.oe_project_kanban_action').hide();
+            });
+            $('.dropdown-toggle').dropdown();
+            this._super();
         }
     });
 }