don't use style.media
This commit is contained in:
parent
567b7c3ed0
commit
bc4c97e779
@ -2364,11 +2364,11 @@
|
||||
},
|
||||
resize: function(e) {
|
||||
var style;
|
||||
if (style = $('style[media=chan]', d.head)) {
|
||||
if (style = $('style.height', d.head)) {
|
||||
$.rm(style);
|
||||
}
|
||||
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.';
|
||||
|
||||
@ -1788,9 +1788,9 @@ imgExpand =
|
||||
$.prepend delform, controls
|
||||
|
||||
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.media = 'chan'
|
||||
style.className = 'height'
|
||||
|
||||
#main
|
||||
NAMESPACE = 'AEOS.4chan_x.'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user