]> source.dussan.org Git - nextcloud-server.git/commitdiff
more robust share dialog
authorMorris Jobke <hey@morrisjobke.de>
Wed, 1 Apr 2015 12:28:28 +0000 (14:28 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Wed, 22 Apr 2015 09:33:05 +0000 (11:33 +0200)
core/js/share.js

index c83c3ee08c89a6345a5cfe870ca2fad611239f2e..08fc706eafb9a3e88b45e1a36ae98dcc5e6e2a16 100644 (file)
@@ -455,6 +455,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) {