[fusion-commits] r2511 - sandbox/adsk/2.4j/lib/jxLib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Mon Jan 9 22:07:54 EST 2012
Author: liuar
Date: 2012-01-09 19:07:54 -0800 (Mon, 09 Jan 2012)
New Revision: 2511
Modified:
sandbox/adsk/2.4j/lib/jxLib/jxlib.uncompressed.js
Log:
On behalf of Buddy
Fixed Ticket https://trac.osgeo.org/fusion/ticket/507 in 2.4j branch
When we deactivate the Maptip widget, we removes the "jxButtonActive" class from this jxButton. At this time, we should invoke the blur() function to remove the focus on this button.
Modified: sandbox/adsk/2.4j/lib/jxLib/jxlib.uncompressed.js
===================================================================
--- sandbox/adsk/2.4j/lib/jxLib/jxlib.uncompressed.js 2012-01-10 02:50:22 UTC (rev 2510)
+++ sandbox/adsk/2.4j/lib/jxLib/jxlib.uncompressed.js 2012-01-10 03:07:54 UTC (rev 2511)
@@ -1817,7 +1817,9 @@
},
removeClass: function(className){
- this.className = this.className.replace(new RegExp('(^|\\s)' + className + '(?:\\s|$)'), '$1');
+ this.className = this.className.replace(new RegExp('(^|\\s)' + className + '(?:\\s|$)'), '$1');
+ if(className == 'jxButtonActive')
+ this.blur();
return this;
},
More information about the fusion-commits
mailing list