From a22f30fb780bce17300ce05a370b11d9afb602d1 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski <mtgap@owncloud.com> Date: Wed, 8 Aug 2012 11:39:00 -0400 Subject: [PATCH] Reset item shares variable, fixes autocomplete not showing people --- core/js/share.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/js/share.js b/core/js/share.js index 467a0e4d95..991e307e5c 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -73,7 +73,6 @@ OC.Share={ }, showDropDown:function(itemType, item, appendTo, privateLink, possiblePermissions) { var html = '<div id="dropdown" class="drop" data-item-type="'+itemType+'" data-item="'+item+'">'; - // TODO replace with autocomplete textbox html += '<input id="shareWith" type="text" placeholder="Share with" style="width:90%;"/>'; html += '<ul id="shareWithList">'; html += '</ul>'; @@ -86,6 +85,8 @@ OC.Share={ } html += '</div>'; $(html).appendTo(appendTo); + // Reset item shares + OC.Share.itemShares = []; var data = OC.Share.loadItem(itemType, item); if (data) { $.each(data, function(index, share) { -- GitLab