-
-
Save fayqLs/8e8cd4c96d02424c4d737ece6a334691 to your computer and use it in GitHub Desktop.
CUSTOMIZAR A MENSAGEM CARREGANDO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CRIE UM ARQUIVO JS NO PROJETO | |
function __adianti_block_ui(mensagem) | |
{ | |
if (typeof $.blockUI == 'function') | |
{ | |
if (typeof Adianti.blockUIConter == 'undefined') | |
{ | |
Adianti.blockUIConter = 0; | |
} | |
Adianti.blockUIConter = Adianti.blockUIConter + 1; | |
if (typeof mensagem == 'undefined') | |
{ | |
mensagem = Adianti.waitMessage; | |
} | |
$.blockUI({ | |
message: '<h1><i class="fa fa-spinner fa-pulse"></i> '+mensagem+'</h1>', | |
fadeIn: 0, | |
fadeOut: 0, | |
css: { | |
border: 'none', | |
top: '100px', | |
left: 0, | |
maxWidth: '300px', | |
width: 'inherit', | |
padding: '15px', | |
backgroundColor: '#000', | |
'border-radius': '5px 5px 5px 5px', | |
opacity: .5, | |
color: '#fff' | |
} | |
}); | |
$('.blockUI.blockMsg').mycenter(); | |
} | |
} | |
EXEMPLO DE USO | |
ABRIR | |
TScript::create("__adianti_block_ui('AGUARDE, CARREGANDO..');"); | |
FECHAR | |
TScript::create('__adianti_unblock_ui();'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment