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:
Nicolas Stepien 2012-02-03 17:27:21 +01:00
parent 61621178c6
commit e64271c27b
2 changed files with 1 additions and 10 deletions

View File

@ -3367,7 +3367,7 @@
return thumb.nextSibling.hidden = true; return thumb.nextSibling.hidden = true;
}, },
expand: function(thumb, url) { expand: function(thumb, url) {
var a, filesize, img, max; var a, img;
if ($.x('ancestor-or-self::*[@hidden]', thumb)) return; if ($.x('ancestor-or-self::*[@hidden]', thumb)) return;
thumb.hidden = true; thumb.hidden = true;
if (img = thumb.nextSibling) { if (img = thumb.nextSibling) {
@ -3378,11 +3378,6 @@
img = $.el('img', { img = $.el('img', {
src: url || a.href 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); if (conf['404 Redirect']) $.on(img, 'error', imgExpand.error);
return $.add(a, img); return $.add(a, img);
}, },

View File

@ -2590,10 +2590,6 @@ imgExpand =
a = thumb.parentNode a = thumb.parentNode
img = $.el 'img', img = $.el 'img',
src: url or a.href 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'] $.on img, 'error', imgExpand.error if conf['404 Redirect']
$.add a, img $.add a, img