头像上传加打印输出
This commit is contained in:
parent
9468257c0c
commit
2d38af7c3d
|
@ -1,12 +1,13 @@
|
|||
<% if @is_direct == '1' && (@source_type=='User'|| @source_type == 'Course' || @source_type == 'Project' || @source_type == 'Organization'|| @source_type == 'Contest') %>
|
||||
var imgSpan = $("img[nhname='avatar_image']");
|
||||
<% if @urlfile && @src_file
|
||||
while !File.readable?(@src_file)
|
||||
while !File.exists?(@src_file)
|
||||
logger.info("###############################################################1__________sleep")
|
||||
sleep(0.5)
|
||||
end
|
||||
end
|
||||
%>
|
||||
<% logger.info("###############################################################get_img") %>
|
||||
imgSpan.attr({"src":'<%= "#{@urlfile.to_s}?#{Time.now.to_i}" %>'});
|
||||
<% else %>
|
||||
var imgSpan = jQuery('#avatar_image');
|
||||
|
|
Loading…
Reference in New Issue