summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-08 11:39:00 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-08 11:39:00 -0400
commita22f30fb780bce17300ce05a370b11d9afb602d1 (patch)
treee7afc2a38419fc221314518c4799375ea0f8a889 /core
parentb1a7e308198a67de82baec06a423e86b1062b7b3 (diff)
downloadnextcloud-server-a22f30fb780bce17300ce05a370b11d9afb602d1.tar.gz
nextcloud-server-a22f30fb780bce17300ce05a370b11d9afb602d1.zip
Reset item shares variable, fixes autocomplete not showing people
Diffstat (limited to 'core')
-rw-r--r--core/js/share.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 467a0e4d954..991e307e5ca 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) {