Sample/Window.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 25 May 2010 05:10:09 +0000 (13:10 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 25 May 2010 05:10:09 +0000 (13:10 +0800)
Sample/Window.js

index b6f1644..ce12bec 100644 (file)
@@ -116,9 +116,12 @@ Window=new XObject({
                                                        var fn =  this.get('/LeftProjectTree').get('combo').getValue();
                                                        if (!fn.length) {
                                                                this.get('/StandardErrorDialog').show("Select a project")
+                                                               return;
                                                         }
+                                                       var pr  = imports.Builder.Provider.ProjectManager.ProjectManager.getByFn(fn);
+                                                
                                                        // confirm..
-                                                       this.get('/DialogConfirm').show("Do you want to delete ????", function() {
+                                                       this.get('/DialogConfirm').show("Are you sure you want to delete project '" + pr.name + "'", function() {
                                                                print("DELETE?");
                                                        });