X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Dialog.AdminPerson.js;h=1b5cc689430489a5d977a363aebdcd94c64cdf0d;hb=612329e8e8fc61cb4ec0ba0d3e31ecb271c36827;hp=9f43bbdadd2c0928c90c5e6f1a0af3a6cb798ed4;hpb=ed40065bdfee3bf2245028687bb3d0ad7398ff2e;p=Pman.Admin diff --git a/Pman.Dialog.AdminPerson.js b/Pman.Dialog.AdminPerson.js index 9f43bbd..1b5cc68 100644 --- a/Pman.Dialog.AdminPerson.js +++ b/Pman.Dialog.AdminPerson.js @@ -54,7 +54,7 @@ Pman.Dialog.AdminPerson = { 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); @@ -161,7 +161,7 @@ Pman.Dialog.AdminPerson = { this.load({ method: 'GET', params: { '_id' : _this.data.id }}); return; } - this.form.findField('company_id').setValue(Pman.Login.authUser.company_id); + this.findField('company_id').setValue(Pman.Login.authUser.company_id); return; } if (action.type == 'load') {