X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.Dialog.CoreEmail.bjs;h=3dd0bd6c9278b548a5b924b2de322bfab5df9bf7;hp=d6ad376ed66bb4404bae3c6614f404a442a3c304;hb=586e4eb470252d837ba18b67e4c3c1702131fd1d;hpb=180aa2e20298e233812b23d3a1161a6d818f2fd0
diff --git a/Pman.Dialog.CoreEmail.bjs b/Pman.Dialog.CoreEmail.bjs
index d6ad376e..3dd0bd6c 100644
--- a/Pman.Dialog.CoreEmail.bjs
+++ b/Pman.Dialog.CoreEmail.bjs
@@ -2,7 +2,7 @@
"name" : "Pman.Dialog.CoreEmail",
"parent" : "",
"title" : "",
- "path" : "/home/edward/gitlive/Pman.Core/Pman.Dialog.CoreEmail.bjs",
+ "path" : "/home/johns/gitlive/Pman.Core/Pman.Dialog.CoreEmail.bjs",
"permname" : "",
"modOrder" : "001",
"strings" : {
@@ -62,14 +62,14 @@
"items" : [
{
"xtype" : "LayoutRegion",
- "$ xns" : "Roo",
"tabPosition" : "top",
+ "$ xns" : "Roo",
"* prop" : "center"
},
{
"hidden" : true,
- "xtype" : "LayoutRegion",
"title" : "Images / Attachments",
+ "xtype" : "LayoutRegion",
"width" : 500,
"$ xns" : "Roo",
"split" : true,
@@ -78,8 +78,8 @@
},
{
"autoScroll" : false,
- "region" : "center",
"fitToFrame" : true,
+ "region" : "center",
"xtype" : "NestedLayoutPanel",
"fitContainer" : true,
"$ xns" : "Roo",
@@ -180,8 +180,8 @@
"items" : [
{
"$ url" : "baseURL + '/Core/MailTemplateList.php'",
- "method" : "GET",
"xtype" : "HttpProxy",
+ "method" : "GET",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
@@ -229,8 +229,8 @@
"render" : "function (_self, width, height)\n{\n \n Roo.log(\"RESIZE, \" + width + ',' + height);\n \n var ew = Math.max(250, width-50);\n var eh = Math.max(250,height-50) ;\n \n \n\n}"
},
"autoScroll" : false,
- "fitToFrame" : true,
"background" : false,
+ "fitToFrame" : true,
"region" : "center",
"title" : "Message",
"xtype" : "ContentPanel",
@@ -313,7 +313,7 @@
"pageSize" : 25,
"displayField" : "name",
"emptyText" : "Select BCC Group",
- "hiddenName" : "bcc_group",
+ "hiddenName" : "bcc_group_id",
"minChars" : 2,
"valueField" : "id",
"xtype" : "ComboBox",
@@ -322,7 +322,7 @@
"editable" : false,
"width" : 300,
"$ xns" : "Roo.form",
- "name" : "bcc_group_name",
+ "name" : "bcc_group_id_name",
"qtip" : "Select BCC Group",
"tpl" : "
{name}
",
"loadingText" : "Searching...",
@@ -340,8 +340,8 @@
"items" : [
{
"$ url" : "baseURL + '/Roo/Core_group'",
- "xtype" : "HttpProxy",
"method" : "GET",
+ "xtype" : "HttpProxy",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
@@ -375,8 +375,8 @@
"items" : [
{
"hideLabels" : true,
- "legend" : "Html Editor",
"style" : "text-align:center;",
+ "legend" : "Html Editor",
"xtype" : "FieldSet",
"$ xns" : "Roo.form",
"items" : [
@@ -443,8 +443,8 @@
"items" : [
{
"$ url" : "baseURL + '/Roo/Images.php'",
- "xtype" : "HttpProxy",
"method" : "GET",
+ "xtype" : "HttpProxy",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
@@ -526,7 +526,7 @@
"items" : [
{
"listeners" : {
- "click" : "function (_self, e)\n{\n var h = _this.form.findField('bodytext').getValue();\n var p = _this.form.findField('plaintext');\n \n new Pman.Request({\r\n url : baseURL + '/Core/ImportMailMessage.php',\r\n method : 'POST',\r\n params : {\n bodytext : h,\r\n _convertToPlain : true,\n _check_unsubscribe : true\r\n }, \r\n success : function(res) {\r\n if(res.success == true){\n p.setValue(res.data);\n }\r\n }\r\n }); \n \n}"
+ "click" : "function (_self, e)\n{\n var h = _this.form.findField('bodytext').getValue();\n var p = _this.form.findField('plaintext');\n \n new Pman.Request({\r\n url : baseURL + '/Core/ImportMailMessage.php',\r\n method : 'POST',\r\n params : {\n bodytext : h,\r\n _convertToPlain : true,\n _check_unsubscribe : true\r\n }, \r\n success : function(res) {\r\n if(res.success == true){\n p.setValue(res.data);\n }\r\n }\r\n });\n \n}"
},
"text" : "Convert Html to Text",
"xtype" : "Button",
@@ -541,8 +541,8 @@
"items" : [
{
"hideLabels" : true,
- "legend" : "Plain Text",
"style" : "text-align:center;",
+ "legend" : "Plain Text",
"xtype" : "FieldSet",
"$ xns" : "Roo.form",
"items" : [
@@ -589,8 +589,8 @@
"|activate" : "function() {\n _this.ipanel = this;\n if (_this.igrid) {\n _this.igrid.ds.load({});\n }\n}"
},
"autoScroll" : false,
- "fitToframe" : true,
"background" : false,
+ "fitToframe" : true,
"region" : "east",
"title" : "Images / Attachments",
"xtype" : "GridPanel",
@@ -620,8 +620,8 @@
"items" : [
{
"$ url" : "baseURL + '/Roo/Images.php'",
- "xtype" : "HttpProxy",
"method" : "GET",
+ "xtype" : "HttpProxy",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
@@ -643,7 +643,7 @@
"items" : [
{
"listeners" : {
- "|click" : "function()\n{\n var id = _this.form.findField('id').getValue();\n \n if(id*1 < 1){\n Roo.MessageBox.alert('Error', 'Please save the email template first');\n return;\n }\n \n var ontable = (_this.data.module) ? _this.data.module : 'crm_mailing_list_message';\n \n Pman.Dialog.Image.show( { id : 0, onid: id, ontable: ontable }, function() {\n _this.igrid.getDataSource().load({});\n }); \n}\n"
+ "|click" : "function()\n{\n var id = _this.form.findField('id').getValue();\n \n if(id*1 < 1){\n Roo.MessageBox.alert('Error', 'Please save the email template first');\n return;\n }\n \n var ontable = (_this.data.module) ? _this.data.module : 'crm_mailing_list_message';\n \n Pman.Dialog.Image.show( { id : 0, onid: id, ontable: ontable }, function() {\n _this.igrid.getDataSource().load({});\n });\n}\n"
},
"text" : "Add",
"xtype" : "Button",
@@ -665,8 +665,8 @@
},
{
"xtype" : "ColumnModel",
- "width" : 300,
"header" : "Filename",
+ "width" : 300,
"$ renderer" : "function(v,x,r)\n{\n var width = r.data.width;\n var height = r.data.height;\n \n if(width > 50){\n height = Math.round(height * 50 / width);\n width = 50;\n }\n \n return '';\n}",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
@@ -674,8 +674,8 @@
},
{
"xtype" : "ColumnModel",
- "header" : "Displayorder",
"width" : 75,
+ "header" : "Displayorder",
"$ renderer" : "function(v) { return String.format('{0}', v); }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
@@ -683,8 +683,8 @@
},
{
"xtype" : "ColumnModel",
- "width" : 75,
"header" : "Title",
+ "width" : 75,
"$ renderer" : "function(v) { return String.format('{0}', v); }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",