From: Edward Date: Fri, 6 Jun 2014 08:39:56 +0000 (+0800) Subject: Pman.Tab.BuilderDatabase.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Builder;a=commitdiff_plain;h=6b676160a41f0b79635197123997470d7ef5a310 Pman.Tab.BuilderDatabase.bjs Pman.Tab.BuilderDatabase.js --- diff --git a/Pman.Tab.BuilderDatabase.bjs b/Pman.Tab.BuilderDatabase.bjs index d423d99..af8342a 100644 --- a/Pman.Tab.BuilderDatabase.bjs +++ b/Pman.Tab.BuilderDatabase.bjs @@ -81,7 +81,7 @@ }, { "listeners": { - "click": "function (_self, e)\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 : node.attributes.name\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 _dump : 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 467b37c..9d5d3b4 100644 --- a/Pman.Tab.BuilderDatabase.js +++ b/Pman.Tab.BuilderDatabase.js @@ -95,6 +95,7 @@ Pman.Tab.BuilderDatabase = new Roo.XComponent({ listeners : { click : function (_self, e) { + /* var node = _this.treepanel.tree.getSelectionModel().getSelectedNode(); if(!node){ @@ -103,11 +104,11 @@ Pman.Tab.BuilderDatabase = new Roo.XComponent({ } Roo.log(node.attributes.name); - + */ new Pman.Download({ url : baseURL + '/Roo/Builder_tables.php', params : { - _dump : node.attributes.name + _dump : 1 }, method : 'GET', success : function() {