Show More
@@ -73,7 +73,7 b' PopupImageViewer.prototype.view = functi' | |||
|
73 | 73 | var thumb_id = 'full' + el.find('img').attr('alt'); |
|
74 | 74 | |
|
75 | 75 | var existingPopups = $('#' + thumb_id); |
|
76 | if(!existingPopups.length) { | |
|
76 | if (!existingPopups.length) { | |
|
77 | 77 | var imgElement= el.find('img'); |
|
78 | 78 | |
|
79 | 79 | var img_w = imgElement.attr('data-width'); |
@@ -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', |
|
|
106 |
.appendTo( |
|
|
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