项目上传图片小的问题
This commit is contained in:
parent
07ca97510c
commit
173a0971ac
|
@ -7,7 +7,7 @@ if($("#course_avatar_form").length > 0) {
|
||||||
window.location.href = "<%=settings_course_path(@course) %>";
|
window.location.href = "<%=settings_course_path(@course) %>";
|
||||||
}
|
}
|
||||||
<% elsif @project %>
|
<% 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) {
|
if($("#project_avatar_form").length > 0) {
|
||||||
window.location.href = "<%=settings_project_path(@project) %>";
|
window.location.href = "<%=settings_project_path(@project) %>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue