[fusion-commits] r2510 - trunk/lib/jxLib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Mon Jan 9 21:50:22 EST 2012
Author: hubu
Date: 2012-01-09 18:50:22 -0800 (Mon, 09 Jan 2012)
New Revision: 2510
Modified:
trunk/lib/jxLib/jxlib.uncompressed.js
Log:
Fixed Ticket https://trac.osgeo.org/fusion/ticket/507
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: trunk/lib/jxLib/jxlib.uncompressed.js
===================================================================
--- trunk/lib/jxLib/jxlib.uncompressed.js 2012-01-05 05:25:32 UTC (rev 2509)
+++ trunk/lib/jxLib/jxlib.uncompressed.js 2012-01-10 02:50:22 UTC (rev 2510)
@@ -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