From: Alan Knowles Date: Mon, 6 Sep 2010 07:54:31 +0000 (+0800) Subject: dbgenerate.js X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=290db859179a5c069e6cf161caa3fa286851ba63 dbgenerate.js --- diff --git a/dbgenerate.js b/dbgenerate.js index fc45d16dc..e1d9fb5fd 100644 --- a/dbgenerate.js +++ b/dbgenerate.js @@ -563,9 +563,10 @@ readers.forEach(function(reader) { "listeners": { "|click": "function()\n"+ "{\n"+ - " //yourdialog.show( { id : 0 } , function() {\n"+ - " // _this.grid.footer.onClick('first');\n"+ - " //}); \n"+ + " if (!_this.dialog) return;\n" + + " _this.dialog.show( { id : 0 } , function() {\n"+ + " _this.grid.footer.onClick('first');\n"+ + " }); \n"+ "}\n" }, "|xns": "Roo.Toolbar" @@ -583,10 +584,10 @@ readers.forEach(function(reader) { " Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n"+ " return;\n"+ " }\n"+ - " \n"+ - " //_this.dialog.show(s[0].data, function() {\n"+ - " // _this.grid.footer.onClick('first');\n"+ - " // }); \n"+ + " if (!_this.dialog) return;\n" + + " _this.dialog.show(s[0].data, function() {\n"+ + " _this.grid.footer.onClick('first');\n"+ + " }); \n"+ " \n"+ "}\n" @@ -601,7 +602,7 @@ readers.forEach(function(reader) { "listeners": { "|click": "function()\n"+ "{\n"+ - " //Pman.genericDelete(_this, _this.grid.tableName); \n"+ + " Pman.genericDelete(_this, '" + reader.table + "'); \n"+ "}\n"+ " " },