[FIX] click and hover events add for close circle and label.
authorBhumi Thakkar (Open ERP) <bth@tinyerp.com>
Tue, 19 Jun 2012 06:41:09 +0000 (12:11 +0530)
committerBhumi Thakkar (Open ERP) <bth@tinyerp.com>
Tue, 19 Jun 2012 06:41:09 +0000 (12:11 +0530)
bzr revid: bth@tinyerp.com-20120619064109-jxnabvv90oszu4w7

addons/web_diagram/static/src/js/graph.js

index b61b2bf..bfe5796 100644 (file)
@@ -75,6 +75,8 @@
             dummy_circle.animate({'r': close_button_radius},400,'linear');
         }
         dummy_circle.hover(hover_in,hover_out);
+        close_circle.hover(hover_in,hover_out);
+        close_label.hover(hover_in,hover_out);
 
         function click_action(){
             if(!visible){ return; }
@@ -97,6 +99,8 @@
             }
         }
         dummy_circle.click(click_action);
+        close_circle.click(click_action);
+        close_label.click(click_action);
 
         this.show = function(){
             if(!visible){