1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

Contacts: Fix add groups. Ref #522

This commit is contained in:
Thomas Tanghus 2013-02-06 13:37:56 +01:00
parent c76067023b
commit d158a7b51a
2 changed files with 2 additions and 1 deletions

View File

@ -167,6 +167,7 @@
width: 16px; height: 16px;
padding: 0; margin: 0;
background-position: center;
background-size:contain;
}
.action.text, .icon.text {

View File

@ -528,7 +528,7 @@ OC.Contacts = OC.Contacts || {};
GroupList.prototype.addGroup = function(params, cb) {
console.log('GroupList.addGroup', params.name);
var name = params.name;
contacts = []; // $.map(contacts, function(c) {return parseInt(c)});
var contacts = []; // $.map(contacts, function(c) {return parseInt(c)});
var self = this, exists = false;
self.$groupList.find('h3[data-type="category"]').each(function() {
if ($(this).data('name').toLowerCase() === name.toLowerCase()) {