- show a spinner while decrypting files if the encryption app was disabled

- don't fade-out the decryption result
This commit is contained in:
Bjoern Schiessle 2013-11-20 12:23:10 +01:00
parent 8bc339413b
commit caf486d6e7

View file

@ -261,8 +261,9 @@ OC.Encryption = {
OC.Encryption.msg={
startDecrypting:function(selector){
var spinner = '<img src="'+ OC.imagePath('core', 'loading-small.gif') +'">';
$(selector)
.html( t('files_encryption', 'Decrypting files... Please wait, this can take some time.') )
.html( t('files_encryption', 'Decrypting files... Please wait, this can take some time.') + ' ' + spinner )
.removeClass('success')
.removeClass('error')
.stop(true, true)
@ -273,8 +274,7 @@ OC.Encryption.msg={
$(selector).html( data.data.message )
.addClass('success')
.stop(true, true)
.delay(3000)
.fadeOut(900);
.delay(3000);
}else{
$(selector).html( data.data.message ).addClass('error');
}