]> 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)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Fri, 10 Apr 2015 07:12:37 +0000 (09:12 +0200)
core/js/share.js

index 5018d10ee9c0e747b15dfdc01040e80277dd17ea..f22a6a78cfdadc1c9d5e81cb807b073b87d4df98 100644 (file)
@@ -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) {