From: Alan Knowles Date: Mon, 13 Jun 2016 01:30:13 +0000 (+0800) Subject: Pman.Tab.AdminEmailTemplates.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=540301e9d1f65bf8b9691e06bdea79880cad6e35 Pman.Tab.AdminEmailTemplates.bjs Pman.Tab.AdminEmailTemplates.js --- diff --git a/Pman.Tab.AdminEmailTemplates.bjs b/Pman.Tab.AdminEmailTemplates.bjs index 7b0a484..c9a7278 100644 --- a/Pman.Tab.AdminEmailTemplates.bjs +++ b/Pman.Tab.AdminEmailTemplates.bjs @@ -23,8 +23,8 @@ "items" : [ { "region" : "center", - "title" : "Email Template", "xtype" : "NestedLayoutPanel", + "title" : "Email Template", "$ xns" : "Roo", "items" : [ { @@ -52,9 +52,9 @@ "listeners" : { "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}" }, + "region" : "center", "fitToframe" : true, "background" : true, - "region" : "center", "title" : "core_email", "xtype" : "GridPanel", "fitContainer" : true, @@ -91,8 +91,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/Core_email.php'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -118,7 +118,7 @@ "items" : [ { "listeners" : { - "|click" : "function()\n{\n \nnew Pman.Download({\n url : baseURL + '/Roo/Core_email',\n method : 'GET',\n params : {\n csvCols : '*',\n csvTitles : '*',\n }\n});\nRoo.MessageBox.alert(\"Notice\", \"Should be downloading now\");\n \n}\n" + "|click" : "function()\n{\n \nnew Pman.Download({\n url : baseURL + '/Roo/Core_email',\n method : 'GET',\n params : {\n csvCols : '*',\n csvTitles : '*'\n }\n});\nRoo.MessageBox.alert(\"Notice\", \"Should be downloading now\");\n \n}\n" }, "text" : "Download to Excel", "xtype" : "Button", @@ -199,8 +199,8 @@ }, { "xtype" : "ColumnModel", - "width" : 250, "header" : "Name", + "width" : 250, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "Boolean sortable" : true, @@ -209,8 +209,8 @@ }, { "xtype" : "ColumnModel", - "width" : 300, "header" : "Title", + "width" : 300, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "Boolean sortable" : true, @@ -219,8 +219,8 @@ }, { "xtype" : "ColumnModel", - "width" : 400, "header" : "From Name", + "width" : 400, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "Boolean sortable" : true, @@ -229,8 +229,8 @@ }, { "xtype" : "ColumnModel", - "width" : 400, "header" : "From Email", + "width" : 400, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "Boolean sortable" : true, @@ -246,8 +246,8 @@ "render" : "function (_self)\n{\n _this.viewPanel = _self;\n}" }, "autoScroll" : true, - "fitToFrame" : true, "background" : false, + "fitToFrame" : true, "region" : "south", "title" : "View Message", "xtype" : "ContentPanel", @@ -274,8 +274,8 @@ "items" : [ { "$ url" : "baseURL+'/Roo/Core_email.php'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, diff --git a/Pman.Tab.AdminEmailTemplates.js b/Pman.Tab.AdminEmailTemplates.js index dec3ed3..abad146 100644 --- a/Pman.Tab.AdminEmailTemplates.js +++ b/Pman.Tab.AdminEmailTemplates.js @@ -130,7 +130,7 @@ Pman.Tab.AdminEmailTemplates = new Roo.XComponent({ method : 'GET', params : { csvCols : '*', - csvTitles : '*', + csvTitles : '*' } }); Roo.MessageBox.alert("Notice", "Should be downloading now");