diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-15 10:45:42 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-15 10:45:42 +0100 |
commit | 2054dbd4c886e8f4d3fcd02f95bab78fb88cc917 (patch) | |
tree | baa458851c593dcf06c346a59a281169ac74945c /core/js/sharedialogview.js | |
parent | be34cea970b9953ba70ddcec296ad48cd36df797 (diff) | |
parent | 92c131b481b675907881af1b6a1d33f4191ee809 (diff) | |
download | nextcloud-server-2054dbd4c886e8f4d3fcd02f95bab78fb88cc917.tar.gz nextcloud-server-2054dbd4c886e8f4d3fcd02f95bab78fb88cc917.zip |
Merge pull request #22350 from owncloud/fix_22304
WebUI feedback when sharing
Diffstat (limited to 'core/js/sharedialogview.js')
-rw-r--r-- | core/js/sharedialogview.js | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js index 225c9bffd62..857d1407ab4 100644 --- a/core/js/sharedialogview.js +++ b/core/js/sharedialogview.js @@ -263,8 +263,18 @@ _onSelectRecipient: function(e, s) { e.preventDefault(); - $(e.target).val(''); - this.model.addShare(s.item.value); + $(e.target).attr('disabled', true) + .val(s.item.label); + var $loading = this.$el.find('.shareWithLoading'); + $loading.removeClass('hidden') + .addClass('inlineblock'); + + this.model.addShare(s.item.value, {success: function() { + $(e.target).val('') + .attr('disabled', false); + $loading.addClass('hidden') + .removeClass('inlineblock'); + }}); }, _toggleLoading: function(state) { |