Sha256: 8ab8f1795034da431fda5ba7adbc72f6ad5a0250b662ead43e39e072d5ee9317

Contents?: true

Size: 659 Bytes

Versions: 259

Compression:

Stored size: 659 Bytes

Contents

$("#avatar_img_<%= old_id %>").removeClass("default");
$("#avatar_img_<%= old_id %>").addClass("non_default");
$("#avatar_link_<%= old_id %>").show();

$("#avatar_img_<%= new_id %>").removeClass("non_default");
$("#avatar_img_<%= new_id %>").addClass("default");
$("#avatar_link_<%= new_id %>").hide();

representation_path = $("#avatar_img_<%= new_id %>").attr('src').replace("/profile/", "/representation/");  

$('#current_user_avatar_img').attr('src', representation_path);
$('#current_subject_avatar_img').css('background-image', "url('" + representation_path +"')");

$("#current_avatar_img").attr('src', $("#avatar_img_<%= new_id %>").attr('src') );
  

Version data entries

259 entries across 259 versions & 4 rubygems

Version Path
social_stream-2.2.2 base/app/views/avatars/update.js.erb
social_stream-base-2.2.2 app/views/avatars/update.js.erb
social_stream-2.2.1 base/app/views/avatars/update.js.erb
social_stream-base-2.2.1 app/views/avatars/update.js.erb
social_stream-2.2.0 base/app/views/avatars/update.js.erb
social_stream-base-2.2.0 app/views/avatars/update.js.erb
social_stream-2.1.1 base/app/views/avatars/update.js.erb
social_stream-1.1.12 base/app/views/avatars/update.js.erb
social_stream-base-1.1.11 app/views/avatars/update.js.erb
social_stream-2.1.0 base/app/views/avatars/update.js.erb
social_stream-base-2.1.0 app/views/avatars/update.js.erb
social_stream-2.0.4 base/app/views/avatars/update.js.erb
social_stream-base-2.0.4 app/views/avatars/update.js.erb
social_stream-2.0.3 base/app/views/avatars/update.js.erb
social_stream-base-2.0.3 app/views/avatars/update.js.erb
social_stream-1.1.11 base/app/views/avatars/update.js.erb
social_stream-base-1.1.10 app/views/avatars/update.js.erb
social_stream-1.1.10 base/app/views/avatars/update.js.erb
social_stream-base-1.1.9 app/views/avatars/update.js.erb
social_stream-1.1.9 base/app/views/avatars/update.js.erb