Skip to content

Commit

Permalink
优化图片弹层逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
alsotang committed Apr 14, 2016
1 parent 2b848b4 commit e56c6a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions views/topic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,10 @@

$(document).on('click', '.markdown-text img', function(e) {
var $img = $(this);
// 图片被a标签包裹时,不显示弹层
if ($img.parent('a').length > 0) {
return;
}
showModal($img.attr('src'));
});

Expand Down

0 comments on commit e56c6a3

Please sign in to comment.