[Commits] r402 - in sandbox/opengeo/geoexplorer: . lib/GeoExt/widgets/tree
commits at geoext.org
commits at geoext.org
Thu Apr 16 19:07:33 CEST 2009
Author: dwins
Date: 2009-04-16 19:07:33 +0200 (Thu, 16 Apr 2009)
New Revision: 402
Modified:
sandbox/opengeo/geoexplorer/lib/GeoExt/widgets/tree/LayerNode.js
sandbox/opengeo/geoexplorer/modifications.txt
Log:
Fixed bug with double-click handling on layertree, see #22
Modified: sandbox/opengeo/geoexplorer/lib/GeoExt/widgets/tree/LayerNode.js
===================================================================
--- sandbox/opengeo/geoexplorer/lib/GeoExt/widgets/tree/LayerNode.js 2009-04-16 16:09:54 UTC (rev 401)
+++ sandbox/opengeo/geoexplorer/lib/GeoExt/widgets/tree/LayerNode.js 2009-04-16 17:07:33 UTC (rev 402)
@@ -64,12 +64,12 @@
* value - {Boolean}
*/
toggleCheck: function(value) {
- GeoExt.tree.LayerNodeUI.superclass.toggleCheck.apply(this, arguments);
+ GeoExt.tree.LayerNodeUI.superclass.toggleCheck.call(this, value);
var node = this.node;
var layer = this.node.layer;
node.visibilityChanging = true;
- if(layer.getVisibility() != value) {
- layer.setVisibility(value);
+ if(this.checkbox && (layer.getVisibility() != this.isChecked())) {
+ layer.setVisibility(this.isChecked());
}
node.visibilityChanging = false;
},
@@ -320,4 +320,4 @@
/**
* NodeType: gx_layer
*/
-Ext.tree.TreePanel.nodeTypes.gx_layer = GeoExt.tree.LayerNode;
\ No newline at end of file
+Ext.tree.TreePanel.nodeTypes.gx_layer = GeoExt.tree.LayerNode;
Modified: sandbox/opengeo/geoexplorer/modifications.txt
===================================================================
--- sandbox/opengeo/geoexplorer/modifications.txt 2009-04-16 16:09:54 UTC (rev 401)
+++ sandbox/opengeo/geoexplorer/modifications.txt 2009-04-16 17:07:33 UTC (rev 402)
@@ -9,4 +9,5 @@
* Made FeatureRecord.create() and LayerRecord.create() not modify prototype fields. (see #40)
* Added scale store (see #41)
* added WMSCapabilitiesReader tests (see #26)
+ * Fixed bug with double-click handling on layertree
More information about the Commits
mailing list