Show More
@@ -98,12 +98,14 b' PopupImageViewer.prototype.view = functi' | |||||
98 | img_w = img_w / scale; |
|
98 | img_w = img_w / scale; | |
99 | img_h = img_h / scale; |
|
99 | img_h = img_h / scale; | |
100 |
|
100 | |||
|
101 | var postNode = $(el); | |||
|
102 | ||||
101 | var img_pv = new Image(); |
|
103 | var img_pv = new Image(); | |
102 | var newImage = $(img_pv); |
|
104 | var newImage = $(img_pv); | |
103 | newImage.addClass('img-full') |
|
105 | newImage.addClass('img-full') | |
104 | .attr('id', thumb_id) |
|
106 | .attr('id', thumb_id) | |
105 |
.attr('src', |
|
107 | .attr('src', postNode.attr('href')) | |
106 |
.appendTo( |
|
108 | .appendTo(postNode) | |
107 | .css({ |
|
109 | .css({ | |
108 | 'width': img_w, |
|
110 | 'width': img_w, | |
109 | 'height': img_h, |
|
111 | 'height': img_h, |
General Comments 0
You need to be logged in to leave comments.
Login now