projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f043135
)
Builder/EditProject.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 29 Apr 2010 09:49:59 +0000
(17:49 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 29 Apr 2010 09:49:59 +0000
(17:49 +0800)
Builder/EditProject.js
patch
|
blob
|
history
diff --git
a/Builder/EditProject.js
b/Builder/EditProject.js
index
e91cde2
..
1301c69
100755
(executable)
--- a/
Builder/EditProject.js
+++ b/
Builder/EditProject.js
@@
-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;