socialforge/app/views/avatar/upload.js.erb

8 lines
273 B
Plaintext
Raw Normal View History

2015-07-09 15:27:49 +08:00
<% if @source_type=='User' %>
var imgSpan = $("img[nhname='avatar_image']");
imgSpan.attr({"src":'<%= "#{@urlfile.to_s}?#{Time.now.to_i}" %>'});
<% else %>
var imgSpan = jQuery('#avatar_image');
2013-08-01 10:33:49 +08:00
2015-05-08 14:28:17 +08:00
imgSpan.attr({"src":'<%= "#{@urlfile.to_s}?#{Time.now.to_i}" %>'});
2015-07-09 15:27:49 +08:00
<% end %>