summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9775b74)
Pman.Dialog.VerifyAccess.js
"items" : [
{
"listeners" : {
"items" : [
{
"listeners" : {
- "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 _this.form.setValues(res.data);\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}"
+ "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 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}"
},
"String cls" : "enable-overflow",
"Boolean allow_close" : false,
},
"String cls" : "enable-overflow",
"Boolean allow_close" : false,
_to_data : 1
},
success : function(res) {
_to_data : 1
},
success : function(res) {
- _this.form.setValues(res.data);
+
+ _this.data = res.data;
+
+ _this.form.setValues(_this.data);
+
return;
},
failure: function(res) {
return;
},
failure: function(res) {