Skip to content

Commit

Permalink
Merge pull request #460 from plural/tiny-image-fix
Browse files Browse the repository at this point in the history
Finally check in a tiny image loading fix i had deployed already.
  • Loading branch information
plural authored Dec 24, 2020
2 parents b47d50f + fe0838c commit f3b4fa9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion app/Resources/views/Decklist/decklist.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ NRDB.user.params.decklist_id = Decklist.id;
<!-- Identity and Stats -->
<div class="row">
<div class="col-sm-3">
<img id="img_identity" data-src="#empty" alt="Identity" class="img-responsive hidden-xs lazyload">
<img id="img_identity" src="#empty" alt="Identity" class="img-responsive hidden-xs">
</div><!-- /.col-md-3 -->
<div class="col-sm-9">
<h3 id="identity"></h3>
Expand Down
1 change: 0 additions & 1 deletion web/js/nrdb.ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
return new Promise(function (resolve, reject) {
image.addEventListener('load', resolve);
image.removeAttribute('data-src');
image.setAttribute('class', 'img-responsive');
image.setAttribute('src', src);
});
};
Expand Down

0 comments on commit f3b4fa9

Please sign in to comment.