Reescrevendo jQuery simples
alguém que entenda de jQuery pode reescrever essa função sem usar o $ (dólar)
Motivo: dólar da conflito com o primefaces
OBS: não adianta substituir por outra variável. Já tentei usar jQuery.noConflict()
Motivo: dólar da conflito com o primefaces
OBS: não adianta substituir por outra variável. Já tentei usar jQuery.noConflict()
//jQuery.noConflict(); ESTE TROÇO NÃO FUNCIONA, SÓ PIORA O ERRO
jQuery(document).ready(function(y) {
y(".popupExibirInformacoes").css('right', '-300px');
var isExpanded = false;
y(".m-menu").click(function () {
if (!isExpanded) {
y('.popupExibirInformacoes').animate({ right: '0' }, { duration: 500, queue: false });
y('#ColunaDireitaTabela').animate({ 'width': '80%' }, { duration: 500, queue: false });
}
else {
y('#ColunaDireitaTabela').animate({ 'width': '100%' }, { duration: 500, queue: false });
y('.popupExibirInformacoes').animate({ right: '-300' }, { duration: 500, queue: false });
}
isExpanded = !isExpanded;
});
});
Michael Batista
Curtidas 0