Author: eallen
Date: 2009-06-05 13:17:25 -0400 (Fri, 05 Jun 2009)
New Revision: 3424
Modified:
mgmt/trunk/cumin/resources/app.js
Log:
Handle mousing over the highlight square to prevent the square from flashing.
Modified: mgmt/trunk/cumin/resources/app.js
===================================================================
--- mgmt/trunk/cumin/resources/app.js 2009-06-04 20:37:49 UTC (rev 3423)
+++ mgmt/trunk/cumin/resources/app.js 2009-06-05 17:17:25 UTC (rev 3424)
@@ -111,6 +111,10 @@
event.stop();
});
mImg.addEvent('mouseout', function(event){
+ if (event.relatedTarget.className.indexOf("img") == 0) {
+ event.stop();
+ return false;
+ }
var oHighlight =
document.body.getElement(".imgHighlight_red");
if (oHighlight) oHighlight.style.display = "none";
oHighlight = document.body.getElement(".imgHighlight_green");
@@ -162,7 +166,7 @@
oValues.style.display = "block";
oValues.style.left = (pos.x + xy[0] + 32) + "px";
oValues.style.top = (pos.y + xy[1] - 8) + "px";
- oValues.innerHTML = "("+point[2].toFixed(2)+")";
+ oValues.innerHTML = "("+point[2]+")";
}
var points = mImg.retrieve('points');
Show replies by date