[Commits] r1778 - sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins

commits at geoext.org commits at geoext.org
Tue Jan 19 11:34:36 CET 2010


Author: fredj
Date: 2010-01-19 11:34:36 +0100 (Tue, 19 Jan 2010)
New Revision: 1778

Modified:
   sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeature.js
Log:
don't crash if the bbar is not rendered

Modified: sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeature.js
===================================================================
--- sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeature.js	2010-01-19 09:40:51 UTC (rev 1777)
+++ sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeature.js	2010-01-19 10:34:36 UTC (rev 1778)
@@ -21,7 +21,12 @@
 
         var action = new Ext.Action(actionOptions);
 
-        form.getBottomToolbar().add(action);
+        var bbar = form.getBottomToolbar();
+        if (bbar.rendered) {
+            bbar.add(action);
+        } else {
+            bbar.buttons.push(action);
+        }
 
         this.editFeatureForm = form;
     },



More information about the Commits mailing list