socialforge/app/views/exercise/update.js.erb

5 lines
440 B
Plaintext
Raw Normal View History

2015-11-17 20:23:14 +08:00
$("#polls_head_show").html("<%= escape_javascript(render :partial => 'show_head', :locals => {:exercise => @exercise}) %>");
$("#polls_head_edit").html("<%= escape_javascript(render :partial => 'edit_head', :locals => {:exercise => @exercise}) %>");
$("#polls_head_edit").hide();
2015-11-19 17:18:58 +08:00
$("#polls_head_show").show();
$("#exercise_submit").html("<%= escape_javascript(render :partial => 'exercise_submit', :locals => {:exercise => @exercise}) %>");