summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-04-01 14:28:28 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2015-04-10 09:12:37 +0200
commit473d3e14c887049aa6d5877192126f8aef3a8d8f (patch)
tree2b8f96ea3bd861975b707f507ebd7adfe11e7bfb /core
parent077ab272818036129affc288a2bd51b2c2105fc0 (diff)
downloadnextcloud-server-473d3e14c887049aa6d5877192126f8aef3a8d8f.tar.gz
nextcloud-server-473d3e14c887049aa6d5877192126f8aef3a8d8f.zip
more robust share dialog
Diffstat (limited to 'core')
-rw-r--r--core/js/share.js4
1 files changed, 4 insertions, 0 deletions
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) {