[Commits] r1034 - apps/opengeo/geoexplorer/branches/0.1.x/lib

commits at geoext.org commits at geoext.org
Wed Jun 10 00:05:57 CEST 2009


Author: tschaub
Date: 2009-06-10 00:05:57 +0200 (Wed, 10 Jun 2009)
New Revision: 1034

Modified:
   apps/opengeo/geoexplorer/branches/0.1.x/lib/GeoExplorer.js
Log:
Set title value when layer name is set from config.

Modified: apps/opengeo/geoexplorer/branches/0.1.x/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/branches/0.1.x/lib/GeoExplorer.js	2009-06-09 20:42:14 UTC (rev 1033)
+++ apps/opengeo/geoexplorer/branches/0.1.x/lib/GeoExplorer.js	2009-06-09 22:05:57 UTC (rev 1034)
@@ -401,7 +401,13 @@
                     
                     // set layer title from config
                     if(conf.title) {
+                        /**
+                         * TODO: If LayerStore is changed to listen for title
+                         * changes remove 'layer.name = conf.title'.
+                         * See http://www.geoext.org/trac/geoext/ticket/85
+                         */
                         layer.name = conf.title;
+                        record.set("title", conf.title);
                     }
 
                     // set any other layer configuration



More information about the Commits mailing list