X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Dialog.CoreEnum.bjs;h=941d07eedc0fb4a634205e2238fff834a38dd340;hb=81f602e2c25f2b9baf5c0a4b56e4ec614f410909;hp=6990ffbe0755e73b00cac3685a06d1396ef21578;hpb=9c3275db4e1631e6ecc0f20eace651a4df176821;p=Pman.Core diff --git a/Pman.Dialog.CoreEnum.bjs b/Pman.Dialog.CoreEnum.bjs index 6990ffbe..941d07ee 100644 --- a/Pman.Dialog.CoreEnum.bjs +++ b/Pman.Dialog.CoreEnum.bjs @@ -8,7 +8,11 @@ "strings" : { "518ad9ed87d3ca17e223a91604b464d5" : "Add / Edit Core Enum", "cfcd208495d565ef66e7dff9f98764da" : "0", + "b48968e1c912da07df5e8d6d246291ec" : "Display Name", + "c4ca4238a0b923820dcc509a6f75849b" : "1", "ea4788705e6873b424c65e91c2846b19" : "Cancel", + "49ee3087348e8d44e1feda1917443987" : "Name", + "4d3d769b812b6faa6b76e1a8abaece2d" : "Active", "e0aa021e21dddbd6d8cecec71e9cf564" : "OK" }, "items" : [ @@ -42,7 +46,7 @@ "items" : [ { "listeners" : { - "|actioncomplete" : "function (_self, action)\n{\n if (action.type == 'setdata') {\n\n if((typeof(_this.data.etype) == 'undefined') || !_this.data.etype.length){\n Roo.MessageBox.alert('Error', 'Missing etype');\n _this.dialog.hide();\n return;\n }\n \n if(_this.data.id){\n _this.dialog.el.mask(\"Loading\");\n this.load({ method: 'GET', params: { '_id' : _this.data.id }}); \n }\n \n return;\n }\n if (action.type == 'load') {\n _this.dialog.el.unmask();\n return;\n }\n if (action.type == 'submit' ) {\n _this.dialog.el.unmask();\n _this.dialog.hide();\n\n if (_this.callback) {\n _this.callback.call(_this, action.result.data);\n }\n _this.form.reset();\n }\n}\n", + "|actioncomplete" : "function (_self, action)\n{\n if (action.type == 'setdata') {\n\n if((typeof(_this.data.etype) == 'undefined') || !_this.data.etype.length){\n Roo.MessageBox.alert('Error', 'Missing etype');\n _this.dialog.hide();\n return;\n }\n \n if(typeof(_this.data.title) != 'undefined' && _this.data.title.length){\n _this.dialog.setTitle(_this.data.title);\n }\n \n if(_this.data.id){\n _this.dialog.el.mask(\"Loading\");\n this.load({ method: 'GET', params: { '_id' : _this.data.id }}); \n }\n \n return;\n }\n if (action.type == 'load') {\n _this.dialog.el.unmask();\n return;\n }\n if (action.type == 'submit' ) {\n _this.dialog.el.unmask();\n _this.dialog.hide();\n\n if (_this.callback) {\n _this.callback.call(_this, action.result.data);\n }\n _this.form.reset();\n }\n}\n", "|rendered" : "function (form)\n{\n _this.form = form;\n}" }, "$ url" : "baseURL + '/Roo/core_enum.php'", @@ -53,7 +57,7 @@ "items" : [ { "fieldLabel" : "Name", - "hidden" : true, + "bool hidden" : true, "xtype" : "TextField", "allowBlank" : false, "actionMode" : "fieldEl", @@ -73,9 +77,12 @@ "name" : "display_name" }, { + "String actionMode" : "fieldEl", + "Boolean checked" : true, "fieldLabel" : "Active", "inputValue" : 1, - "value" : 0, + "hidden" : true, + "value" : 1, "xtype" : "Checkbox", "valueOff" : 0, "$ xns" : "Roo.form", @@ -86,11 +93,6 @@ "$ xns" : "Roo.form", "name" : "etype" }, - { - "xtype" : "Hidden", - "$ xns" : "Roo.form", - "name" : "etype" - }, { "xtype" : "Hidden", "value" : 0,