|
|
|
@ -7,7 +7,7 @@ if($("#course_avatar_form").length > 0) {
|
|
|
|
|
window.location.href = "<%=settings_course_path(@course) %>";
|
|
|
|
|
}
|
|
|
|
|
<% elsif @project %>
|
|
|
|
|
$("#nh_source_tx").replaceWith('<%= image_tag(url_to_avatar(@project), :id=>'nh_source_tx',:style=>"width:60px;height:60px;overflow:hidden",:alt=>"项目logo") %>');
|
|
|
|
|
$("#nh_source_tx").replaceWith('<%= image_tag(url_to_avatar(@project), :id=>'nh_source_tx',:style=>"width:110px;height:110px;overflow:hidden",:alt=>"项目logo") %>');
|
|
|
|
|
if($("#project_avatar_form").length > 0) {
|
|
|
|
|
window.location.href = "<%=settings_project_path(@project) %>";
|
|
|
|
|
}
|
|
|
|
|