summaryrefslogtreecommitdiffstats
path: root/apps/contacts/js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/contacts/js')
-rw-r--r--apps/contacts/js/contacts.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/contacts/js/contacts.js b/apps/contacts/js/contacts.js
index bca542fdcda..861250c53e6 100644
--- a/apps/contacts/js/contacts.js
+++ b/apps/contacts/js/contacts.js
@@ -1474,8 +1474,8 @@ Contacts={
var name = $(dragitem).find('a').html();
var added = false;
$(droplist).children().each(function(){
- if (droptarget.text().toLowerCase() > name.toLowerCase()) {
- droptarget.before(dragitem.detach()); //.fadeIn('slow');
+ if ($(this).text().toLowerCase() > name.toLowerCase()) {
+ $(this).before(dragitem.detach()); //.fadeIn('slow');
added = true;
return false;
}