From: Morris Jobke Date: Wed, 1 Apr 2015 12:28:28 +0000 (+0200) Subject: more robust share dialog X-Git-Tag: v8.1.0alpha1~33^2~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=473d3e14c887049aa6d5877192126f8aef3a8d8f;p=nextcloud-server.git more robust share dialog --- 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) {