From 67dda6a7c2accd0b0d08fe3db7abce0a271374b2 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Tue, 28 Jan 2014 15:57:32 +0100 Subject: [PATCH] Newly created groups didn't accept drop. Close #357 --- js/groups.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/groups.js b/js/groups.js index dc0a332a..d44130ad 100644 --- a/js/groups.js +++ b/js/groups.js @@ -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) {