Builder/EditProject.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 29 Apr 2010 09:49:59 +0000 (17:49 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 29 Apr 2010 09:49:59 +0000 (17:49 +0800)
Builder/EditProject.js

index e91cde2..1301c69 100755 (executable)
@@ -39,12 +39,16 @@ EditProject = new XObject({
         },
         show : function (c) 
         {
+            
             c = c || { name : '' , xtype : '' };
             this.project  = c;
             
             [ 'xtype' , 'name' ].forEach(function(k) {
                 this.get(k).setValue(typeof(c[k]) == 'undefined' ? '' : c[k]);
             }
+            if (!this.el) {
+                this.init();
+            }
             this.el.show_all();
             this.success = c.success;