[Pkg-owncloud-commits] [owncloud] 17/103: more robust share dialog

David Prévot taffit at moszumanska.debian.org
Sun May 31 12:32:33 UTC 2015


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

taffit pushed a commit to annotated tag v8.0.4RC1
in repository owncloud.

commit 3fe909305dcaea5eeba343c6730aa2627a133ab8
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 b3533af..128ac72 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) {

-- 
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