diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2017-04-25 14:12:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-25 14:12:44 +0200 |
commit | 82c9eb1c5654562e8057953356af49b7295a7561 (patch) | |
tree | 852acfbf17793033f932fed8da3a39b5f242c812 /core/js/sharedialoglinkshareview.js | |
parent | 026070a2fc3b766f9d686c50c358b6f03462ad18 (diff) | |
parent | 58cc1251be33b43a5bb9163e1b042970b8e81b4b (diff) | |
download | nextcloud-server-82c9eb1c5654562e8057953356af49b7295a7561.tar.gz nextcloud-server-82c9eb1c5654562e8057953356af49b7295a7561.zip |
Merge pull request #4462 from danxuliu/fix-sharing-password-protected-link
Fix sharing a password protected link
Diffstat (limited to 'core/js/sharedialoglinkshareview.js')
-rw-r--r-- | core/js/sharedialoglinkshareview.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js index 4904ed493cc..9368982d916 100644 --- a/core/js/sharedialoglinkshareview.js +++ b/core/js/sharedialoglinkshareview.js @@ -307,10 +307,12 @@ this.model.saveLinkShare({ password: password }, { + complete: function(model) { + $loading.removeClass('inlineblock').addClass('hidden'); + }, error: function(model, msg) { // destroy old tooltips $input.tooltip('destroy'); - $loading.removeClass('inlineblock').addClass('hidden'); $input.addClass('error'); $input.attr('title', msg); $input.tooltip({placement: 'bottom', trigger: 'manual'}); |