Dejo el codigo para saber si hay algo incorrecto:
Código HTML:
$(document).ready(function(){
var j = jQuery.noConflict();
j(document).ready(function()
{
j("#caja-scroll").everyTime(2000,function(i){
j.ajax({
url: "php/inbox.php",
cache: false,
success: function(html){
j("#caja-scroll").html(html);
}
})
})
});
jQuery(".btnGestionar").click( function(){
var currentId = $(this).attr('id');
$.ajax({
type: "GET",
url: "php/act_gestion.php?id="+currentId+"&accion=open",
success: function(datos){
if (datos == "ocupado"){
$('#btnPopAlerta').fancybox({'transitionIn' : 'elastic', 'transitionOut' :'elastic','onClosed': function(){ location.href='index.php?go=2';}}).trigger('click');
}else if (datos == "abierto"){
$('#btnGestionarH').fancybox({'transitionIn' : 'elastic', 'transitionOut' :'elastic','onClosed':function(){
$.ajax({
type: "GET",
url: "php/act_gestion.php?id="+currentId+"&accion=cerrar",
success: function(datos){
location.href='index.php?go=2';
}
});
}}).trigger('click');
}
}
});
});
});


