email layout
authorAlan Knowles <alan@roojs.com>
Thu, 22 Jul 2021 03:58:58 +0000 (11:58 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 22 Jul 2021 03:58:58 +0000 (11:58 +0800)
Pman.Dialog.BAdminEmail.bjs
Pman.Dialog.BAdminEmail.js

index 61fd4ea..653ed37 100644 (file)
@@ -2,7 +2,7 @@
  "name" : "Pman.Dialog.BAdminEmail",
  "parent" : "",
  "title" : "Pman.Dialog.BAdminEmail",
- "path" : "/home/edward/gitlive/Pman.BAdmin/Pman.Dialog.BAdminEmail.bjs",
+ "path" : "/home/alan/gitlive/Pman.BAdmin/Pman.Dialog.BAdminEmail.bjs",
  "permname" : "",
  "modOrder" : "001",
  "strings" : {
@@ -65,6 +65,7 @@
    "xtype" : "Modal",
    "$ xns" : "Roo.bootstrap",
    "String title" : "Edit / Create Message",
+   "Boolean bodyOverflow" : true,
    "items" : [
     {
      "listeners" : {
              "listeners" : {
               "render" : "function (_self)\n{\n    _this.combo_to_group = _self;\n}"
              },
+             "Boolean allowBlank" : true,
              "String loadingText" : "Searching",
              "Number pageSize" : 20,
-             "Boolean allowBlank" : true,
              "String name" : "to_group_id_name",
              "Number minChars" : 2,
              "String valueField" : "id",
              "items" : [
               {
                "listeners" : {
-                "beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    \n    o.params._direct_return = 1;\n}\n"
+                "beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    \n    o.params._direct_return = 1;\n    o.params.limit = 100;\n}\n"
                },
                "$ Object sortInfo" : "{ direction : 'ASC', field: 'name' }",
                "xtype" : "Store",
            "$ xns" : "Roo.bootstrap",
            "items" : [
             {
+             "Boolean allowBlank" : true,
              "String loadingText" : "Searching",
              "Number pageSize" : 20,
-             "Boolean allowBlank" : true,
              "String name" : "bcc_group_id_name",
              "Number minChars" : 2,
              "String valueField" : "id",
            "items" : [
             {
              "String header" : "HTML Editor",
-             "String panel" : "default",
              "xtype" : "Container",
+             "String panel" : "default",
              "$ xns" : "Roo.bootstrap",
              "items" : [
               {
index 6bc33be..b359e78 100644 (file)
@@ -67,7 +67,7 @@ Roo.apply(Pman.Dialog.BAdminEmail.prototype, {
 
   this.callback = cb;
   this.data = data;
-  this.dialog.show(this.data._el);
+  this.dialog.show.apply(this.dialog,  Array.prototype.slice.call(arguments).slice(2));
   if (this.form) {
    this.form.reset();
    this.form.setValues(data);
@@ -81,6 +81,7 @@ Roo.apply(Pman.Dialog.BAdminEmail.prototype, {
   var _this = this;
   this.dialog = Roo.factory({
     xtype : 'Modal',
+    bodyOverflow : true,
     cls : 'modal-body-enable-overflow-y',
     fitwindow : true,
     title : _this._strings['396ecabf0cd1f9503e591418851ef406'] /* Edit / Create Message */,
@@ -580,6 +581,7 @@ Roo.apply(Pman.Dialog.BAdminEmail.prototype, {
                      o.params = o.params || {};
                      
                      o.params._direct_return = 1;
+                     o.params.limit = 100;
                  }
                },
                xns : Roo.data,