Remove outdated Firefox specific code to prevent expanded pictures from having their width fit the table instead of it's natural width. That was fixed in Fx10 I believe.
This commit is contained in:
parent
61621178c6
commit
e64271c27b
@ -3367,7 +3367,7 @@
|
||||
return thumb.nextSibling.hidden = true;
|
||||
},
|
||||
expand: function(thumb, url) {
|
||||
var a, filesize, img, max;
|
||||
var a, img;
|
||||
if ($.x('ancestor-or-self::*[@hidden]', thumb)) return;
|
||||
thumb.hidden = true;
|
||||
if (img = thumb.nextSibling) {
|
||||
@ -3378,11 +3378,6 @@
|
||||
img = $.el('img', {
|
||||
src: url || a.href
|
||||
});
|
||||
if (engine === 'gecko' && a.parentNode.className !== 'op') {
|
||||
filesize = $.x('preceding-sibling::span[@class="filesize"]', a).textContent;
|
||||
max = filesize.match(/(\d+)x/);
|
||||
img.style.maxWidth = "" + max[1] + "px";
|
||||
}
|
||||
if (conf['404 Redirect']) $.on(img, 'error', imgExpand.error);
|
||||
return $.add(a, img);
|
||||
},
|
||||
|
||||
@ -2590,10 +2590,6 @@ imgExpand =
|
||||
a = thumb.parentNode
|
||||
img = $.el 'img',
|
||||
src: url or a.href
|
||||
if engine is 'gecko' and a.parentNode.className isnt 'op'
|
||||
filesize = $.x('preceding-sibling::span[@class="filesize"]', a).textContent
|
||||
max = filesize.match /(\d+)x/
|
||||
img.style.maxWidth = "#{max[1]}px"
|
||||
$.on img, 'error', imgExpand.error if conf['404 Redirect']
|
||||
$.add a, img
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user