more robust share dialog

This commit is contained in:
Morris Jobke 2015-04-01 14:28:28 +02:00 committed by Jörn Friedrich Dreyer
parent 077ab27281
commit 473d3e14c8

View 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) {