8 lines
679 B
Plaintext
8 lines
679 B
Plaintext
clickCanel();
|
|
<% if @user_activity_id != -1 %>
|
|
$("#user_activity_<%= @user_activity_id%>").replaceWith("<%= escape_javascript(render :partial => 'users/course_homework', :locals => {:activity => @homework,:user_activity_id =>@user_activity_id,:course_activity=>@courae_activity}) %>");
|
|
sd_create_editor_from_data(<%= @user_activity_id%>,"","100%", "UserActivity");
|
|
<% else %>
|
|
$("#homework_common_<%= @homework.id %>").replaceWith("<%= escape_javascript(render :partial => 'users/user_homework_detail', :locals => {:homework_common => @homework,:is_in_course => @is_in_course}) %>");
|
|
sd_create_editor_from_data(<%= @homework.id%>,"","100%", "<%=@homework.class.to_s%>");
|
|
<% end %> |