2 "name" : "Pman.Dialog.VerifyAccess",
5 "path" : "/home/edward/gitlive/Pman.Core/Pman.Dialog.VerifyAccess.bjs",
9 "e2c9d024b79dfb48b42a7807206c6aed" : "Verify New IP Access",
10 "d41d8cd98f00b204e9800998ecf8427e" : "",
11 "f6039d44b29456b20f8f373155ae4973" : "Username",
12 "004bf6c9a40003140292e97330236c53" : "Action",
13 "5a787141d53b573ec9b86e900bfe0d79" : "Expire Date",
14 "dfb790522fdea3859af206d32916fe77" : "User Agent",
15 "70d9be9b139893aa6c69b5e77e614311" : "Confirm"
20 "show" : "function (_self)\n{\n var path = window.location.pathname.split('/');\n \n var authorized_key = path.pop();\n \n var id = path.pop();\n \n new Pman.Request({\n url: baseURL + '/Core/VerifyAccess',\n method : 'POST',\n mask : 'Loading...',\n params : {\n id : id,\n authorized_key : authorized_key,\n _to_data : 1\n }, \n success : function(res) {\n \n _this.data = res.data;\n \n _this.form.setValues(_this.data);\n \n if(_this.data.status * 1 == 0){\n _this.form.findField('status').reset();\n }\n \n _this.form.clearInvalid();\n \n return;\n },\n failure: function(res) {\n \n _this.dialog.hide();\n \n Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);\n \n return;\n }\n });\n}"
22 "String cls" : "enable-overflow",
23 "Boolean allow_close" : false,
25 "$ xns" : "Roo.bootstrap",
26 "String title" : "Verify New IP Access",
30 "actionfailed" : "function (_self, action)\n{\n _this.dialog.el.unmask();\n Roo.log(\"action failed\");\n Roo.log(action);\n \n if(!action.result.errorMsg){\n Roo.bootstrap.MessageBox.alert(\"Error\", \"Please contact system adminisrator\");\n }\n \n var msg = action.result.errorMsg;\n \n if(msg.length >= 200){\n msg = msg.substring(0,199) + '...'\n }\n \n Roo.bootstrap.MessageBox.alert(\"Error\", msg);\n}",
31 "actioncomplete" : "function (_self, action)\n{\n if (action.type == 'setdata') {\n \n return;\n }\n if (action.type == 'load') {\n \n return;\n }\n if (action.type =='submit') {\n \n _this.dialog.hide();\n \n return;\n }\n \n}",
32 "render" : "function (_self,e)\n{\n _this.form = _self;\n \n}"
34 "$ string url" : "baseURL + '/Core/VerifyAccess'",
35 "Boolean errorMask" : true,
37 "String labelAlign" : "top",
38 "$ xns" : "Roo.bootstrap",
39 "Boolean loadMask" : false,
43 "$ xns" : "Roo.bootstrap",
48 "$ xns" : "Roo.bootstrap",
51 "String name" : "email",
52 "Boolean readOnly" : true,
54 "string fieldLabel" : "Username",
55 "$ xns" : "Roo.bootstrap"
62 "$ xns" : "Roo.bootstrap",
65 "String name" : "user_agent",
66 "Boolean readOnly" : true,
68 "string fieldLabel" : "User Agent",
70 "$ xns" : "Roo.bootstrap",
71 "String style" : "margin-bottom: 15px;"
78 "$ xns" : "Roo.bootstrap",
82 "select" : "function (combo, record, index)\n{\n _this.expire_dt.allowBlank = true;\n _this.expire_dt.el.hide();\n \n if(record.data.code == '-2'){\n _this.expire_dt.allowBlank = false;\n _this.expire_dt.el.show();\n }\n}"
84 "Boolean allowBlank" : false,
85 "Boolean selectOnFocus" : true,
86 "String name" : "status_name",
87 "String mode" : "local",
88 "String valueField" : "code",
89 "Boolean editable" : false,
91 "String triggerAction" : "all",
92 "string fieldLabel" : "Action",
93 "Boolean alwaysQuery" : true,
94 "$ xns" : "Roo.bootstrap",
95 "String/Roo.Template tpl" : "<div class=\"roo-select2-result\"><b>{value}</b></div>",
96 "String hiddenName" : "status",
97 "String displayField" : "value",
98 "String indicatorpos" : "right",
99 "Boolean forceSelection" : true,
102 "$ string data" : "[\n ['1', 'Approve'],\n ['-2', 'Temporary'],\n ['-1', 'Reject']\n] ",
103 "xtype" : "SimpleStore",
104 "$ xns" : "Roo.data",
105 "$ fields" : "[ 'code', 'value' ]",
115 "$ xns" : "Roo.bootstrap",
119 "render" : "function (_self)\n{\n _this.expire_dt = this;\n \n this.setStartDate(new Date());\n \n this.el.setVisibilityMode(Roo.Element.DISPLAY);\n \n this.el.hide();\n}"
121 "Boolean allowBlank" : false,
122 "String name" : "expire_dt",
123 "xtype" : "DateField",
124 "string fieldLabel" : "Expire Date",
125 "$ xns" : "Roo.bootstrap",
126 "String indicatorpos" : "right"
134 "$ xns" : "Roo.bootstrap",
139 "$ xns" : "Roo.bootstrap",
142 "String name" : "id",
144 "String inputType" : "hidden",
145 "$ xns" : "Roo.bootstrap"
148 "String name" : "authorized_key",
150 "String inputType" : "hidden",
151 "$ xns" : "Roo.bootstrap"
161 "render" : "function (_self)\n{\n _this.error_row = this;\n \n this.el.setVisibilityMode(Roo.Element.DISPLAY);\n \n this.el.hide();\n}"
164 "$ xns" : "Roo.bootstrap",
169 "$ xns" : "Roo.bootstrap",
173 "render" : "function (_self)\n{\n _this.text_el = _self;\n}"
176 "$ xns" : "Roo.bootstrap",
185 "click" : "function (_self, e)\n{\n if(!_this.form.isValid()){\n return;\n }\n Roo.log('submit');\n return;\n _this.dialog.el.mask('Sending...');\n _this.form.doAction('submit');\n \n}"
187 "String weight" : "primary",
189 "$ xns" : "Roo.bootstrap",
190 "String html" : "Confirm",
191 "* prop" : "buttons[]"