Commits

Luke Plant committed cd05a90

Make tooltip disappear when user moves away from the tooltip (if they had hovered over the tooltip itself)

  • Participants
  • Parent commits 05e2119

Comments (0)

Files changed (1)

File semanticeditor/media/semanticeditor/javascript/orbitaltooltip.js

 			 tt.animate({
 			     opacity: 1.0
 			 }, 0);
-		     }, function(event) { });
+		     },
+                     function(event) {
+                         fly_orbit = false;
+                         hideTooltip(tt);
+                     });
 
             return this.hover(
                 function(e) {
                 		*/
                 		alert('orbiting functionality is not currently functioning');
                   	} else {
-                		position(jQuery("#" + uniqueID), tooltipPosition[0], tooltipPosition[1]);
+                		position(tt, tooltipPosition[0], tooltipPosition[1]);
                 	}
                 },
                 function(e) {
 					// off hover
 					fly_orbit = false;
-					hideTooltip(jQuery("#" + uniqueID));
+					hideTooltip(tt);
                 }
             );
         }