2 "name" : "Pman.Dialog.AdminGeoCityEdit",
5 "path" : "/home/edward/gitlive/Pman.Admin/Pman.Dialog.AdminGeoCityEdit.bjs",
9 "59716c97497eb9694541f7c3d37b1a4d" : "Country",
10 "3c1df4260ce594cb5594696461087f2f" : "Select Country",
11 "43ccafccb532cc57c20bc05a36aad7b7" : "Add / Edit City",
12 "4a39a1ff7adda1ac731be5bf500d0812" : "Select Division",
13 "45c10605e0a492fbe7a3eac258cd1e81" : "Time Zone",
14 "1243daf593fa297e07ab03bf06d925af" : "Searching...",
15 "ea4788705e6873b424c65e91c2846b19" : "Cancel",
16 "25f75488c91cb6c3bab92672e479619f" : "Postal Code",
17 "49ee3087348e8d44e1feda1917443987" : "Name",
18 "c9cc8cce247e49bae79f15173ce97354" : "Save",
19 "3025cdaab2deb0bb2cd642449e570833" : "Division"
22 "country_name_qtip" : "3c1df4260ce594cb5594696461087f2f",
23 "division_id_name_qtip" : "4a39a1ff7adda1ac731be5bf500d0812",
24 "time_zone_fieldLabel" : "45c10605e0a492fbe7a3eac258cd1e81",
25 "country_name_emptyText" : "3c1df4260ce594cb5594696461087f2f",
26 "postal_code_fieldLabel" : "25f75488c91cb6c3bab92672e479619f",
27 "name_fieldLabel" : "49ee3087348e8d44e1feda1917443987",
28 "country_name_loadingText" : "1243daf593fa297e07ab03bf06d925af",
29 "division_id_name_emptyText" : "4a39a1ff7adda1ac731be5bf500d0812",
30 "division_id_name_fieldLabel" : "3025cdaab2deb0bb2cd642449e570833",
31 "division_id_name_loadingText" : "1243daf593fa297e07ab03bf06d925af",
32 "country_name_fieldLabel" : "59716c97497eb9694541f7c3d37b1a4d"
37 "collapsible" : false,
38 "title" : "Add / Edit City",
39 "xtype" : "LayoutDialog",
47 "xtype" : "LayoutRegion",
53 "xtype" : "ContentPanel",
58 "|actioncomplete" : "function(_self, action)\n{\n if (action.type == 'setdata') {\n \n if(_this.data.id) {\n this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n }\n return;\n }\n if (action.type == 'load') {\n \n _this.dialog.el.unmask();\n \n _this.data = action.result.data;\n \n return;\n }\n if (action.type =='submit') {\n \n _this.dialog.el.unmask();\n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.form.reset();\n return;\n }\n}\n",
59 "|rendered" : "function (form)\n{\n _this.form= form;\n}\n"
61 "$ url" : "baseURL + '/Roo/geoip_city.php'",
62 "style" : "margin:10px;",
69 "Boolean allowBlank" : false,
70 "fieldLabel" : "Name",
71 "xtype" : "TextField",
77 "fieldLabel" : "Postal Code",
78 "xtype" : "TextField",
81 "name" : "postal_code"
84 "fieldLabel" : "Time Zone",
85 "xtype" : "TextField",
93 "triggerAction" : "all",
94 "fieldLabel" : "Country",
95 "forceSelection" : true,
96 "selectOnFocus" : true,
98 "displayField" : "lval",
99 "emptyText" : "Select Country",
100 "hiddenName" : "country",
102 "valueField" : "lkey",
103 "xtype" : "ComboBox",
104 "allowBlank" : false,
108 "$ xns" : "Roo.form",
109 "name" : "country_name",
110 "qtip" : "Select Country",
111 "queryParam" : "query[name]",
112 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{lval}</b> </div>",
113 "loadingText" : "Searching...",
117 "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n o.params.ltype = 'c',\n o.params.inlang = 'en';\n o.is_active = 1;\n}\n"
121 "$ sortInfo" : "{ direction : 'ASC', field: 'lval' }",
122 "$ xns" : "Roo.data",
126 "$ url" : "baseURL + '/Roo/i18n.php'",
127 "xtype" : "HttpProxy",
129 "$ xns" : "Roo.data",
135 "xtype" : "JsonReader",
136 "$ xns" : "Roo.data",
137 "$ fields" : "[\n {\n \"name\":\"id\",\n \"type\":\"int\"\n },\n {\n \"name\":\"code\",\n \"type\":\"string\"\n },\n {\n \"name\":\"name\",\n \"type\":\"string\"\n },\n {\n \"name\":\"country\",\n \"type\":\"string\"\n },\n {\n \"name\":\"country_name\",\n \"type\":\"string\"\n }\n]",
139 "totalProperty" : "total"
147 "beforequery" : "function (combo, query, forceAll, cancel, e)\n{\n var country = _this.form.findField('country').getValue();\n \n if(!country.length) {\n Roo.MessageBox.alert('Error', 'Please select a country');\n return false;\n }\n}"
149 "alwaysQuery" : true,
151 "triggerAction" : "all",
152 "fieldLabel" : "Division",
153 "forceSelection" : true,
154 "selectOnFocus" : true,
156 "displayField" : "name",
157 "emptyText" : "Select Division",
158 "hiddenName" : "division_id",
161 "xtype" : "ComboBox",
165 "$ xns" : "Roo.form",
166 "name" : "division_id_name",
167 "qtip" : "Select Division",
168 "queryParam" : "query[name]",
169 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
170 "loadingText" : "Searching...",
174 "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n \n var country = _this.form.findField('country').getValue();\n \n if(!country.length) {\n return false;\n }\n \n o.params.country = country;\n}\n"
178 "$ sortInfo" : "{ direction : 'ASC', field: 'name' }",
179 "$ xns" : "Roo.data",
183 "$ url" : "baseURL + '/Roo/geoip_division.php'",
185 "xtype" : "HttpProxy",
186 "$ xns" : "Roo.data",
192 "xtype" : "JsonReader",
193 "$ xns" : "Roo.data",
194 "$ fields" : "[\n {\n \"name\":\"id\",\n \"type\":\"int\"\n },\n {\n \"name\":\"name\",\n \"type\":\"string\"\n },\n {\n \"name\":\"country\",\n \"type\":\"string\"\n },\n {\n \"name\":\"country_name\",\n \"type\":\"string\"\n }\n]",
196 "totalProperty" : "total"
204 "$ xns" : "Roo.form",
213 "click" : "function (_self, e)\n{\n _this.dialog.hide();\n}"
218 "* prop" : "buttons[]"
222 "click" : "function (_self, e)\n{\n _this.form.doAction(\"submit\");\n}"
227 "* prop" : "buttons[]"