Skip to content

Commit

Permalink
Merge pull request dirkfabisch#36 from jacob-israel-turner/patch-1
Browse files Browse the repository at this point in the history
Update index.js
  • Loading branch information
dirkfabisch committed May 3, 2015
2 parents edb1331 + 709af45 commit 40eeafb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
// Creates Captions from Alt tags
$(".post-content img").each(function() {
// Let's put a caption if there is one
if($(this).attr("alt") && !(this).hasClass("emoji"))
if($(this).attr("alt") && !$(this).hasClass("emoji"))
$(this).wrap('<figure class="image"></figure>')
.after('<figcaption>'+$(this).attr("alt")+'</figcaption>');
});

});

}(jQuery));
}(jQuery));

0 comments on commit 40eeafb

Please sign in to comment.