1
I need to run this function after a button gives an update="@form" on the page
<script type="text/javascript">
function carregaCss(){
$(".ui-icon-calendar").addClass("glyphicon glyphicon-calendar corPadrao");
$(".ui-icon-seek-first").addClass("glyphicon glyphicon-backward corPadrao");
$(".ui-datepicker-next span").addClass("glyphicon glyphicon-circle-arrow-right");
}
</script>
It works in the page header, but when the ajax update is executed it does not work and the icons do not receive the classes they should receive..
Run the function in ajax update callback...
– Jader A. Wagner
Is wearing a
commandButton
? Take a look at the attributeonComplete
to call this function.– Wakim