Merge pull request #5960 from owncloud/enc_small_visual_improvements
[encryption] some small visual improvements
This commit is contained in:
commit
de2b444030
|
@ -261,8 +261,9 @@ OC.Encryption = {
|
||||||
|
|
||||||
OC.Encryption.msg={
|
OC.Encryption.msg={
|
||||||
startDecrypting:function(selector){
|
startDecrypting:function(selector){
|
||||||
|
var spinner = '<img src="'+ OC.imagePath('core', 'loading-small.gif') +'">';
|
||||||
$(selector)
|
$(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('success')
|
||||||
.removeClass('error')
|
.removeClass('error')
|
||||||
.stop(true, true)
|
.stop(true, true)
|
||||||
|
@ -273,8 +274,7 @@ OC.Encryption.msg={
|
||||||
$(selector).html( data.data.message )
|
$(selector).html( data.data.message )
|
||||||
.addClass('success')
|
.addClass('success')
|
||||||
.stop(true, true)
|
.stop(true, true)
|
||||||
.delay(3000)
|
.delay(3000);
|
||||||
.fadeOut(900);
|
|
||||||
}else{
|
}else{
|
||||||
$(selector).html( data.data.message ).addClass('error');
|
$(selector).html( data.data.message ).addClass('error');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue