don't use style.media

This commit is contained in:
James Campos 2011-06-01 23:55:22 -07:00
parent 567b7c3ed0
commit bc4c97e779
2 changed files with 4 additions and 4 deletions

View File

@ -2364,11 +2364,11 @@
}, },
resize: function(e) { resize: function(e) {
var style; var style;
if (style = $('style[media=chan]', d.head)) { if (style = $('style.height', d.head)) {
$.rm(style); $.rm(style);
} }
style = $.addStyle("body.fitheight img[md5] + img { max-height: " + d.body.clientHeight + "px }"); style = $.addStyle("body.fitheight img[md5] + img { max-height: " + d.body.clientHeight + "px }");
return style.media = 'chan'; return style.className = 'height';
} }
}; };
NAMESPACE = 'AEOS.4chan_x.'; NAMESPACE = 'AEOS.4chan_x.';

View File

@ -1788,9 +1788,9 @@ imgExpand =
$.prepend delform, controls $.prepend delform, controls
resize: (e) -> resize: (e) ->
$.rm style if style = $ 'style[media=chan]', d.head $.rm style if style = $ 'style.height', d.head
style = $.addStyle "body.fitheight img[md5] + img { max-height: #{d.body.clientHeight}px }" style = $.addStyle "body.fitheight img[md5] + img { max-height: #{d.body.clientHeight}px }"
style.media = 'chan' style.className = 'height'
#main #main
NAMESPACE = 'AEOS.4chan_x.' NAMESPACE = 'AEOS.4chan_x.'