##// END OF EJS Templates
Don't jquery-select image's post twice
neko259 -
r1352:60237ae8 default
parent child Browse files
Show More
@@ -98,12 +98,14 b' PopupImageViewer.prototype.view = functi'
98 98 img_w = img_w / scale;
99 99 img_h = img_h / scale;
100 100
101 var postNode = $(el);
102
101 103 var img_pv = new Image();
102 104 var newImage = $(img_pv);
103 105 newImage.addClass('img-full')
104 106 .attr('id', thumb_id)
105 .attr('src', $(el).attr('href'))
106 .appendTo($(el))
107 .attr('src', postNode.attr('href'))
108 .appendTo(postNode)
107 109 .css({
108 110 'width': img_w,
109 111 'height': img_h,
General Comments 0
You need to be logged in to leave comments. Login now