This commit is contained in:
James Campos 2011-05-02 22:03:57 -07:00
commit b2c08cdd0d
2 changed files with 11 additions and 10 deletions

View File

@ -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;

View File

@ -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