[Commits] r1054 - apps/opengeo/geoexplorer/trunk/lib
commits at geoext.org
commits at geoext.org
Fri Jun 12 00:11:16 CEST 2009
Author: tschaub
Date: 2009-06-12 00:11:16 +0200 (Fri, 12 Jun 2009)
New Revision: 1054
Modified:
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
r1053 for the trunk
Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-06-11 22:09:49 UTC (rev 1053)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-06-11 22:11:16 UTC (rev 1054)
@@ -528,8 +528,17 @@
disabled: true,
items: this.createTools()
});
- this.on("ready", function() {toolbar.enable();});
-
+ this.on("ready", function() {
+ // enable only those items that were not specifically disabled
+ var disabled = toolbar.items.filterBy(function(item) {
+ return item.initialConfig && item.initialConfig.disabled;
+ });
+ toolbar.enable();
+ disabled.each(function(item) {
+ item.disable();
+ });
+ });
+
var viewport = new Ext.Viewport({
layout: "fit",
hideBorders: true,
More information about the Commits
mailing list