PHP8
[Pman.BAdmin] / Pman.Dialog.BAdminGroups.bjs
index 0ac9475..f302648 100644 (file)
@@ -2,7 +2,7 @@
  "name" : "Pman.Dialog.BAdminGroups",
  "parent" : "",
  "title" : "",
- "path" : "/home/edward/gitlive/Pman.BAdmin/Pman.Dialog.BAdminGroups.bjs",
+ "path" : "/home/alan/gitlive/Pman.BAdmin/Pman.Dialog.BAdminGroups.bjs",
  "permname" : "",
  "modOrder" : "001",
  "strings" : {
   "49ee3087348e8d44e1feda1917443987" : "Name",
   "c9cc8cce247e49bae79f15173ce97354" : "Save"
  },
+ "named_strings" : {
+  "display_name_placeholder" : "49ee3087348e8d44e1feda1917443987"
+ },
  "items" : [
   {
-   "String cls" : "enable-overflow",
+   "String cls" : "enable-overflow padding-bottom-trim",
    "xtype" : "Modal",
    "$ xns" : "Roo.bootstrap",
    "String title" : "Add / Edit Group",
@@ -21,7 +24,7 @@
     {
      "listeners" : {
       "actionfailed" : "function (_self, action)\n{\n    Roo.log(action);\n    Roo.bootstrap.MessageBox.alert('Error', action.result.errorMsg);\n}",
-      "actioncomplete" : "function (_self, action)\n{\n    if(action.type == 'setdata'){\n    \n       if(_this.data.id * 1 > 0) {\n            this.doAction('load',{ method: 'GET', params: { '_id' : _this.data.id }});\n        } \n        \n        return;\n    }\n   \n    if (action.type == 'load') {\n        _this.data = action.result.data;\n        \n        if(!_this.data.display_name.length){\n            _this.form.findField('display_name').setValue(_this.data.name);\n        }\n        return;\n    }\n    \n    \n    if (action.type == 'submit') {\n    \n        _this.dialog.hide();\n       \n        if (_this.callback) {\n            _this.callback.call(this, action.result.data);\n        }\n        \n        return; \n    }\n}",
+      "actioncomplete" : "function (_self, action)\n{\n    if(action.type == 'setdata'){\n    _this.dialog.setTitle(\"Create Group\");\n       if(_this.data.id * 1 > 0) {\n            this.doAction('load',{ method: 'GET', params: { '_id' : _this.data.id }});\n            _this.dialog.setTitle(\"Edit Group\");\n        } \n        \n        return;\n    }\n   \n    if (action.type == 'load') {\n        _this.data = action.result.data;\n        \n        if(!_this.data.display_name.length){\n            _this.form.findField('display_name').setValue(_this.data.name);\n        }\n        return;\n    }\n    \n    \n    if (action.type == 'submit') {\n    \n        _this.dialog.hide();\n       \n        if (_this.callback) {\n            _this.callback.call(this, action.result.data);\n        }\n        \n        return; \n    }\n}",
       "render" : "function (_self)\n{\n    _this.form = _self;\n}"
      },
      "$ url" : "baseURL + '/Roo/Core_group' ",