diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-04-01 15:28:28 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-04-23 00:40:35 +0300 |
commit | 3fe909305dcaea5eeba343c6730aa2627a133ab8 (patch) | |
tree | e9c6082ecc257187f3211ffebbbf4d53fad7ffa5 /core | |
parent | f98a62453284f60e1974c8296938baeb9efcb766 (diff) |
more robust share dialog
Diffstat (limited to 'core')
-rw-r--r-- | core/js/share.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/js/share.js b/core/js/share.js index b3533af4824..128ac729e5d 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -473,6 +473,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) { |