[Commits] r2906 - sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/tree
commits at geoext.org
commits at geoext.org
Mon Dec 17 10:27:45 CET 2012
Author: sbrunner
Date: 2012-12-17 10:27:45 +0100 (Mon, 17 Dec 2012)
New Revision: 2906
Modified:
sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/tree/WMSBrowserRootNode.js
Log:
Expand WMS services only on success
Modified: sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/tree/WMSBrowserRootNode.js
===================================================================
--- sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/tree/WMSBrowserRootNode.js 2012-12-17 09:27:44 UTC (rev 2905)
+++ sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/tree/WMSBrowserRootNode.js 2012-12-17 09:27:45 UTC (rev 2906)
@@ -114,11 +114,11 @@
* Called on "load" event. Fires any "success" or "failure" events/methods
*/
onWMSCapabilitiesLoad: function() {
- // Expand WMS services
- Ext.each(this.childNodes, function(node) {
- node.expanded = true;
- });
if (this.hasChildNodes()) {
+ // Expand WMS services
+ Ext.each(this.childNodes, function(node) {
+ node.expanded = true;
+ });
this.wmsbrowser.fireEvent('getcapabilitiessuccess');
} else if (this.loader.url != this.INIT_URL) {
this.onWMSCapabilitiesStoreLoadException();
More information about the Commits
mailing list