projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9cde8c2
)
Pman.Dialog.PersonEditor.js
author
Chris
<chris@roojs.com>
Tue, 18 Mar 2014 08:35:36 +0000
(16:35 +0800)
committer
Chris
<chris@roojs.com>
Tue, 18 Mar 2014 08:35:36 +0000
(16:35 +0800)
Pman.Dialog.PersonEditor.js
patch
|
blob
|
history
diff --git
a/Pman.Dialog.PersonEditor.js
b/Pman.Dialog.PersonEditor.js
index
48cbda6
..
ca8a5dd
100644
(file)
--- a/
Pman.Dialog.PersonEditor.js
+++ b/
Pman.Dialog.PersonEditor.js
@@
-81,7
+81,7
@@
Pman.Dialog.PersonEditor.prototype = {
actioncomplete: function(f, act) {
_this.dialog.el.unmask();
if (act.type == 'load') {
actioncomplete: function(f, act) {
_this.dialog.el.unmask();
if (act.type == 'load') {
- _this.form.findField('countries').setValue();// set empty array by default...
+
_this.data = act.result.data;
}
_this.data = act.result.data;
}
@@
-90,6
+90,9
@@
Pman.Dialog.PersonEditor.prototype = {
var data = _this.data;
// we dont have a form where company name is sent in - and is editable..
//this.form.findField('office_id')
var data = _this.data;
// we dont have a form where company name is sent in - and is editable..
//this.form.findField('office_id')
+ if(!data.countries){
+ _this.form.findField('countries').setValue();// set empty array by default...
+ }
if (_this.form.findField('company_id') && _this.form.findField('company_id').setFromData) {
_this.form.findField('company_id').setFromData( data.company_id ? {
if (_this.form.findField('company_id') && _this.form.findField('company_id').setFromData) {
_this.form.findField('company_id').setFromData( data.company_id ? {