Nicolas Bally 6abf7679fd initial
2011-05-14 13:36:30 +02:00

7 lines
219 B
Plaintext

if($('#prescriptions').data('last') != "<%= @last.created_at %>"){
alert('Une nouvelle ordonnance à été reçu');
}
$('#prescriptions').replaceWith('<%= escape_javascript(render(:partial => "prescriptions")) %>');