This commit is contained in:
commit
b2c08cdd0d
11
4chan_x.js
11
4chan_x.js
@ -468,7 +468,7 @@
|
|||||||
innerHTML: xhr.responseText
|
innerHTML: xhr.responseText
|
||||||
});
|
});
|
||||||
if (threadID === replyID) {
|
if (threadID === replyID) {
|
||||||
bq = $('blockqoute', body);
|
bq = $('blockquote', body);
|
||||||
} else {
|
} else {
|
||||||
_ref = $$('td[id]', body);
|
_ref = $$('td[id]', body);
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
@ -1999,10 +1999,11 @@
|
|||||||
foo: function() {
|
foo: function() {
|
||||||
var crap, formWidth, left, table, td;
|
var crap, formWidth, left, table, td;
|
||||||
formWidth = $('form[name=delform]').getBoundingClientRect().width;
|
formWidth = $('form[name=delform]').getBoundingClientRect().width;
|
||||||
td = $('td.reply');
|
if (td = $('td.reply')) {
|
||||||
table = td.parentNode.parentNode.parentNode;
|
table = td.parentNode.parentNode.parentNode;
|
||||||
left = td.getBoundingClientRect().left - table.getBoundingClientRect().left;
|
left = td.getBoundingClientRect().left - table.getBoundingClientRect().left;
|
||||||
crap = td.getBoundingClientRect().width - parseInt(getComputedStyle(td).width);
|
crap = td.getBoundingClientRect().width - parseInt(getComputedStyle(td).width);
|
||||||
|
}
|
||||||
imgExpand.maxWidthOP = formWidth;
|
imgExpand.maxWidthOP = formWidth;
|
||||||
imgExpand.maxWidthReply = formWidth - left - crap;
|
imgExpand.maxWidthReply = formWidth - left - crap;
|
||||||
imgExpand.maxHeight = d.body.clientHeight;
|
imgExpand.maxHeight = d.body.clientHeight;
|
||||||
|
|||||||
@ -309,7 +309,7 @@ expandComment =
|
|||||||
innerHTML: xhr.responseText
|
innerHTML: xhr.responseText
|
||||||
|
|
||||||
if threadID is replyID
|
if threadID is replyID
|
||||||
bq = $ 'blockqoute', body
|
bq = $ 'blockquote', body
|
||||||
else
|
else
|
||||||
#css selectors don't like ids starting with numbers,
|
#css selectors don't like ids starting with numbers,
|
||||||
# getElementById only works for root document.
|
# getElementById only works for root document.
|
||||||
@ -1518,10 +1518,10 @@ imgExpand =
|
|||||||
|
|
||||||
foo: ->
|
foo: ->
|
||||||
formWidth = $('form[name=delform]').getBoundingClientRect().width
|
formWidth = $('form[name=delform]').getBoundingClientRect().width
|
||||||
td = $('td.reply')
|
if td = $('td.reply')
|
||||||
table = td.parentNode.parentNode.parentNode
|
table = td.parentNode.parentNode.parentNode
|
||||||
left = td.getBoundingClientRect().left - table.getBoundingClientRect().left
|
left = td.getBoundingClientRect().left - table.getBoundingClientRect().left
|
||||||
crap = td.getBoundingClientRect().width - parseInt(getComputedStyle(td).width)
|
crap = td.getBoundingClientRect().width - parseInt(getComputedStyle(td).width)
|
||||||
|
|
||||||
imgExpand.maxWidthOP = formWidth
|
imgExpand.maxWidthOP = formWidth
|
||||||
imgExpand.maxWidthReply = formWidth - left - crap
|
imgExpand.maxWidthReply = formWidth - left - crap
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user