Use small loading indicator for avatars smaller than 32px
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
6d29b36200
commit
1f635bb892
|
@ -133,7 +133,11 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$div.addClass('icon-loading');
|
if (size < 32) {
|
||||||
|
$div.addClass('icon-loading-small');
|
||||||
|
} else {
|
||||||
|
$div.addClass('icon-loading');
|
||||||
|
}
|
||||||
img.width = size;
|
img.width = size;
|
||||||
img.height = size;
|
img.height = size;
|
||||||
img.src = url;
|
img.src = url;
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
this.css('font-size', '');
|
this.css('font-size', '');
|
||||||
this.html('');
|
this.html('');
|
||||||
this.removeClass('icon-loading');
|
this.removeClass('icon-loading');
|
||||||
|
this.removeClass('icon-loading-small');
|
||||||
};
|
};
|
||||||
}(jQuery));
|
}(jQuery));
|
||||||
|
|
Loading…
Reference in New Issue