1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-19 08:52:22 +01:00

Contacts: Disable group select until saved.

This commit is contained in:
Thomas Tanghus 2013-02-03 15:25:00 +01:00
parent 0c6bf8cc4d
commit df92b31a51

View File

@ -490,6 +490,7 @@ OC.Contacts = OC.Contacts || {};
self.id = parseInt(jsondata.data.id);
self.access.id = parseInt(jsondata.data.aid);
self.data = jsondata.data.details;
self.$groupSelect.multiselect('enable');
// Add contact to current group
if(self.groupprops && self.groupprops.currentgroup.id !== 'all'
&& self.groupprops.currentgroup.id !== 'fav') {
@ -694,6 +695,9 @@ OC.Contacts = OC.Contacts || {};
self.removeFromGroup(ui.text);
}
});
if(!self.id) {
self.$groupSelect.multiselect('disable');
}
};
var n = this.getPreferredValue('N', ['', '', '', '', '']);