summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/js/sharedialogview.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js
index 96f076c6a47..21fb03c7b05 100644
--- a/core/js/sharedialogview.js
+++ b/core/js/sharedialogview.js
@@ -445,6 +445,9 @@
$confirm.addClass('hidden');
this.model.addShare(s.item.value, {success: function() {
+ // Adding a share changes the suggestions.
+ self._lastSuggestions = undefined;
+
$(e.target).val('')
.attr('disabled', false);
$loading.addClass('hidden')
@@ -525,6 +528,9 @@
$loading.removeClass('inlineblock');
$confirm.removeClass('hidden');
+ // Adding a share changes the suggestions.
+ self._lastSuggestions = undefined;
+
$shareWithField.val('');
$shareWithField.prop('disabled', false);
$shareWithField.focus();