diff --git a/core/js/share.js b/core/js/share.js index 5018d10ee9c..f22a6a78cfd 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -499,6 +499,10 @@ OC.Share={ } else { response(); } + }).fail(function(){ + $('#dropdown').find('.shareWithLoading').addClass('hidden'); + OC.Notification.show(t('core', 'An error occured. Please try again')); + window.setTimeout(OC.Notification.hide, 5000); }); }, focus: function(event, focused) {