mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +01:00
Contacts: Disable group select until saved.
This commit is contained in:
parent
0c6bf8cc4d
commit
df92b31a51
@ -490,6 +490,7 @@ OC.Contacts = OC.Contacts || {};
|
|||||||
self.id = parseInt(jsondata.data.id);
|
self.id = parseInt(jsondata.data.id);
|
||||||
self.access.id = parseInt(jsondata.data.aid);
|
self.access.id = parseInt(jsondata.data.aid);
|
||||||
self.data = jsondata.data.details;
|
self.data = jsondata.data.details;
|
||||||
|
self.$groupSelect.multiselect('enable');
|
||||||
// Add contact to current group
|
// Add contact to current group
|
||||||
if(self.groupprops && self.groupprops.currentgroup.id !== 'all'
|
if(self.groupprops && self.groupprops.currentgroup.id !== 'all'
|
||||||
&& self.groupprops.currentgroup.id !== 'fav') {
|
&& self.groupprops.currentgroup.id !== 'fav') {
|
||||||
@ -694,6 +695,9 @@ OC.Contacts = OC.Contacts || {};
|
|||||||
self.removeFromGroup(ui.text);
|
self.removeFromGroup(ui.text);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
if(!self.id) {
|
||||||
|
self.$groupSelect.multiselect('disable');
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var n = this.getPreferredValue('N', ['', '', '', '', '']);
|
var n = this.getPreferredValue('N', ['', '', '', '', '']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user