Don't cache your personal gravatar across gravatar updates.

(imported from commit 06f82faaa350db8a64cebef24b738b5e93bebb98)
This commit is contained in:
Jessica McKellar
2012-11-06 17:06:47 -05:00
parent 85423bc010
commit 3af5e246be
4 changed files with 9 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
// scrollbar when we switch to a new tab (and restore it
// when we switch back.)
var scroll_positions = {};
var gravatar_stamp = 1;
function register_onclick(message_row, message_id) {
message_row.find(".messagebox").click(function (e) {
@@ -461,8 +462,9 @@ $(function () {
function update_gravatars() {
$.each($(".gravatar-profile"), function(index, profile) {
$(this).attr('src', $(this).attr('src') + '?' + $.now());
$(this).attr('src', $(this).attr('src') + '?stamp=' + gravatar_stamp);
});
gravatar_stamp += 1;
}
function poll_for_gravatar_update(start_time, url) {