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

Newly created groups didn't accept drop. Close #357

This commit is contained in:
Thomas Tanghus 2014-01-28 15:57:32 +01:00
parent 4891656447
commit 67dda6a7c2

View File

@ -622,6 +622,12 @@ OC.Contacts = OC.Contacts || {};
$elem.data('contacts', contacts);
$elem.data('rawname', name);
$elem.data('id', id);
$elem.droppable({
drop: self.contactDropped,
activeClass: 'ui-state-active',
hoverClass: 'ui-state-hover',
scope: 'contacts'
});
var added = false;
self.$groupList.find('li.group[data-type="category"]').each(function() {
if ($(this).data('rawname').toLowerCase().localeCompare(name.toLowerCase()) > 0) {