From: Edward Date: Fri, 6 Jun 2014 08:40:57 +0000 (+0800) Subject: Pman.Tab.BuilderDatabase.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Builder;a=commitdiff_plain;h=a186c7cb350c8b8dbe5ef4e5a97751ab7608d408 Pman.Tab.BuilderDatabase.bjs Pman.Tab.BuilderDatabase.js --- diff --git a/Pman.Tab.BuilderDatabase.bjs b/Pman.Tab.BuilderDatabase.bjs index af8342a..a8c25c2 100644 --- a/Pman.Tab.BuilderDatabase.bjs +++ b/Pman.Tab.BuilderDatabase.bjs @@ -81,7 +81,7 @@ }, { "listeners": { - "click": "function (_self, e)\n{\n/*\n var node = _this.treepanel.tree.getSelectionModel().getSelectedNode(); \n \n if(!node){\n Roo.MessageBox.alert('Error', 'Please select a table');\n return;\n } \n \n Roo.log(node.attributes.name);\n */\n new Pman.Download({\n url : baseURL + '/Roo/Builder_tables.php',\n params : {\n _dump : 1\n },\n method : 'GET',\n success : function() {\n \n }\n });\n}" + "click": "function (_self, e)\n{\n/*\n var node = _this.treepanel.tree.getSelectionModel().getSelectedNode(); \n \n if(!node){\n Roo.MessageBox.alert('Error', 'Please select a table');\n return;\n } \n \n Roo.log(node.attributes.name);\n */\n new Pman.Download({\n url : baseURL + '/Roo/Builder_tables.php',\n params : {\n _dumpDatabase : 1\n },\n method : 'GET',\n success : function() {\n \n }\n });\n}" }, "text": "Export Data", "xtype": "Item", diff --git a/Pman.Tab.BuilderDatabase.js b/Pman.Tab.BuilderDatabase.js index 9d5d3b4..26beb05 100644 --- a/Pman.Tab.BuilderDatabase.js +++ b/Pman.Tab.BuilderDatabase.js @@ -108,7 +108,7 @@ Pman.Tab.BuilderDatabase = new Roo.XComponent({ new Pman.Download({ url : baseURL + '/Roo/Builder_tables.php', params : { - _dump : 1 + _dumpDatabase : 1 }, method : 'GET', success : function() {