summaryrefslogtreecommitdiffstats
path: root/core/js/sharedialogview.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-02-16 19:40:44 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-02-17 09:21:12 +0100
commite1fd86ccb6a7b4e3d705829a5eb6c27b5085b4cd (patch)
tree1cb002a0c2d0b329f454762b418db6f39e478bac /core/js/sharedialogview.js
parentfe29feae9a1ee759e09091941e3bcf96f72e3f21 (diff)
downloadnextcloud-server-e1fd86ccb6a7b4e3d705829a5eb6c27b5085b4cd.tar.gz
nextcloud-server-e1fd86ccb6a7b4e3d705829a5eb6c27b5085b4cd.zip
Unlock sharee input field when sharing fails
Fixes #22441 When addShares fails (for whatever reason) we should unlock the sharee input field so the user does not have to reload the page.
Diffstat (limited to 'core/js/sharedialogview.js')
-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 e7435877cb3..b406299a075 100644
--- a/core/js/sharedialogview.js
+++ b/core/js/sharedialogview.js
@@ -281,6 +281,12 @@
.attr('disabled', false);
$loading.addClass('hidden')
.removeClass('inlineblock');
+ }, error: function(obj, msg) {
+ OC.Notification.showTemporary(msg);
+ $(e.target).val('')
+ .attr('disabled', false);
+ $loading.addClass('hidden')
+ .removeClass('inlineblock');
}});
},