projects
/
Pman.Admin
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix company id findfield
[Pman.Admin]
/
Pman.Dialog.AdminPerson.js
diff --git
a/Pman.Dialog.AdminPerson.js
b/Pman.Dialog.AdminPerson.js
index
9f43bbd
..
1b5cc68
100644
(file)
--- a/
Pman.Dialog.AdminPerson.js
+++ b/
Pman.Dialog.AdminPerson.js
@@
-54,7
+54,7
@@
Pman.Dialog.AdminPerson = {
this.callback = cb;
this.data = data;
this.callback = cb;
this.data = data;
- this.dialog.show
(this.data._el
);
+ this.dialog.show
.apply(this.dialog, Array.prototype.slice.call(arguments).slice(2)
);
if (this.form) {
this.form.reset();
this.form.setValues(data);
if (this.form) {
this.form.reset();
this.form.setValues(data);
@@
-161,7
+161,7
@@
Pman.Dialog.AdminPerson = {
this.load({ method: 'GET', params: { '_id' : _this.data.id }});
return;
}
this.load({ method: 'GET', params: { '_id' : _this.data.id }});
return;
}
- this.f
orm.f
indField('company_id').setValue(Pman.Login.authUser.company_id);
+ this.findField('company_id').setValue(Pman.Login.authUser.company_id);
return;
}
if (action.type == 'load') {
return;
}
if (action.type == 'load') {