tester123
Javascript
code posted
created at 25 May 18:00
Edit
|
Back
1 2 3 4 5 6 7 8 |
$("#pending_approvals").html("#{get_partial("approvals/pending")}") $("#addressed_approvals").html("#{get_partial("approvals/addressed")}") $("#approvals_wating").text("#{@employee.approvals.where(:state=>0).count}") if( $("#approvals_wating").text() == "0" ){ $("#approvals_wating").addClass("empty") }else{ $("#approvals_wating").removeClass("empty") } |
361 Bytes in 4 ms with coderay