[Pkg-owncloud-commits] [owncloud] 43/78: more robust share dialog

David Prévot taffit at moszumanska.debian.org
Sun May 31 01:59:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit f830150acc3d4788805377f0c6fcdce9f024148b
Author: Morris Jobke <hey at morrisjobke.de>
Date:   Wed Apr 1 14:28:28 2015 +0200

    more robust share dialog
---
 core/js/share.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/core/js/share.js b/core/js/share.js
index c83c3ee..08fc706 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -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) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list