Display inline image when it starts loading,

Rewrote inline-expanding.js to display full image as soon as it starts
loading.
Modified expand-all-images.js to work with the new change
Moved max-width to style.css
This commit is contained in:
Markerov 2014-10-27 16:49:17 +08:00 committed by czaks
parent 26130c43ea
commit a723ff8e66
3 changed files with 34 additions and 23 deletions

View file

@ -34,7 +34,7 @@ onready(function(){
$('div#shrink-all-images a')
.text(_('Shrink all images'))
.click(function(){
$('a img.post-image').each(function() {
$('a img.full-image').each(function() {
if ($(this).parent()[0].dataset.expanded)
$(this).parent().click();
});