Uno mas…
if (rating == 0) { <br> if ($(ipl).hasClass('igray')) { <br> $(ipl).removeClass('igray'); <br> $(imi).removeClass('ibusy').html(txt); <br> } else { <br> $(imi).removeClass('ibusy').addClass('igray').html(txt); <br> } <br>} else { <br> if ($(imi).hasClass('igray')) { <br> $(imi).removeClass('igray'); <br> $(ipl).removeClass('ibusy').html(txt); <br> } else { <br> $(ipl).removeClass('ibusy').addClass('igray').html(txt); <br> } <br>}