Merge fail.
This commit is contained in:
parent
453ebe7e74
commit
ef886aea7f
@ -10762,7 +10762,8 @@
|
||||
$.addClass(thumb, 'expanding');
|
||||
if (post.file.fullImage) {
|
||||
$.asap((function() {
|
||||
return post.file.isVideo || post.file.fullImage.naturalHeight;
|
||||
var file;
|
||||
return (file = post.file.fullImage) && (file.videoHeight || file.naturalHeight);
|
||||
}), function() {
|
||||
return ImageExpand.completeExpand(post);
|
||||
});
|
||||
@ -10779,11 +10780,11 @@
|
||||
}
|
||||
$.on(file, 'error', ImageExpand.error);
|
||||
$.asap((function() {
|
||||
return post.file.isVideo || post.file.fullImage.naturalHeight;
|
||||
return (file = post.file.fullImage) && (file.videoHeight || file.naturalHeight);
|
||||
}), function() {
|
||||
if (isVideo) {
|
||||
img.style.maxHeight = img[naturalHeight] + "px";
|
||||
img.style.maxWidth = img['videoWidth'] + "px";
|
||||
file.style.maxHeight = file.videoHeight + "px";
|
||||
file.style.maxWidth = file.videoWidth + "px";
|
||||
}
|
||||
return ImageExpand.completeExpand(post);
|
||||
});
|
||||
|
||||
@ -10800,7 +10800,8 @@
|
||||
$.addClass(thumb, 'expanding');
|
||||
if (post.file.fullImage) {
|
||||
$.asap((function() {
|
||||
return post.file.isVideo || post.file.fullImage.naturalHeight;
|
||||
var file;
|
||||
return (file = post.file.fullImage) && (file.videoHeight || file.naturalHeight);
|
||||
}), function() {
|
||||
return ImageExpand.completeExpand(post);
|
||||
});
|
||||
@ -10817,11 +10818,11 @@
|
||||
}
|
||||
$.on(file, 'error', ImageExpand.error);
|
||||
$.asap((function() {
|
||||
return post.file.isVideo || post.file.fullImage.naturalHeight;
|
||||
return (file = post.file.fullImage) && (file.videoHeight || file.naturalHeight);
|
||||
}), function() {
|
||||
if (isVideo) {
|
||||
img.style.maxHeight = img[naturalHeight] + "px";
|
||||
img.style.maxWidth = img['videoWidth'] + "px";
|
||||
file.style.maxHeight = file.videoHeight + "px";
|
||||
file.style.maxWidth = file.videoWidth + "px";
|
||||
}
|
||||
return ImageExpand.completeExpand(post);
|
||||
});
|
||||
|
||||
@ -104,7 +104,7 @@ ImageExpand =
|
||||
$.addClass thumb, 'expanding'
|
||||
if post.file.fullImage
|
||||
# Expand already-loaded/ing picture.
|
||||
$.asap (-> post.file.isVideo or post.file.fullImage.naturalHeight), ->
|
||||
$.asap (-> (file = post.file.fullImage) and (file.videoHeight or file.naturalHeight)), ->
|
||||
ImageExpand.completeExpand post
|
||||
return
|
||||
file =
|
||||
@ -116,11 +116,11 @@ ImageExpand =
|
||||
file.loop = true
|
||||
file.controls = Conf['Show Controls']
|
||||
$.on file, 'error', ImageExpand.error
|
||||
$.asap (-> post.file.isVideo or post.file.fullImage.naturalHeight), ->
|
||||
$.asap (-> (file = post.file.fullImage) and (file.videoHeight or file.naturalHeight)), ->
|
||||
if isVideo
|
||||
# XXX Firefox doesn't seem to size videos correctly?
|
||||
img.style.maxHeight = img[naturalHeight] + "px"
|
||||
img.style.maxWidth = img['videoWidth'] + "px"
|
||||
file.style.maxHeight = file.videoHeight + "px"
|
||||
file.style.maxWidth = file.videoWidth + "px"
|
||||
ImageExpand.completeExpand post
|
||||
$.after (if file.controls then thumb.parentNode else thumb), file
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user