From efb593fe4c3ed3e2b48cca0b637b5f16bc4fb30a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 25 May 2010 13:10:09 +0800 Subject: [PATCH] Sample/Window.js --- Sample/Window.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sample/Window.js b/Sample/Window.js index b6f164467..ce12bec0b 100644 --- a/Sample/Window.js +++ b/Sample/Window.js @@ -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?"); }); -- 2.39.2