Replace a few innerHTML = to textContent =
This commit is contained in:
parent
257a31f8be
commit
06e450160f
@ -719,7 +719,7 @@
|
||||
a = $('.omittedposts', thread);
|
||||
switch (a.textContent[0]) {
|
||||
case '+':
|
||||
if ((_ref = $('.op .container', thread)) != null) _ref.innerHTML = '';
|
||||
if ((_ref = $('.op .container', thread)) != null) _ref.textContent = '';
|
||||
a.textContent = a.textContent.replace('+', 'X Loading...');
|
||||
return $.cache(pathname, (function() {
|
||||
return expandThread.parse(this, pathname, thread, a);
|
||||
@ -2963,7 +2963,7 @@
|
||||
var body, href, html, link, newInline, op, quote, reply, _i, _j, _len, _len2, _ref, _ref2;
|
||||
if (!inline.parentNode) return;
|
||||
if (req.status !== 200) {
|
||||
inline.innerHTML = "" + req.status + " " + req.statusText;
|
||||
inline.textContent = "" + req.status + " " + req.statusText;
|
||||
return;
|
||||
}
|
||||
body = $.el('body', {
|
||||
@ -3040,7 +3040,7 @@
|
||||
}
|
||||
}
|
||||
} else {
|
||||
qp.innerHTML = "Loading " + id + "...";
|
||||
qp.textContent = "Loading " + id + "...";
|
||||
threadID = this.pathname.split('/').pop() || $.x('ancestor::div[@class="thread"]', this).firstChild.id;
|
||||
$.cache(this.pathname, (function() {
|
||||
return quotePreview.parse(this, id, threadID);
|
||||
@ -3063,7 +3063,7 @@
|
||||
var body, html, op, qp, reply, _i, _len, _ref;
|
||||
if (!((qp = ui.el) && (qp.innerHTML === ("Loading " + id + "...")))) return;
|
||||
if (req.status !== 200) {
|
||||
qp.innerHTML = "" + req.status + " " + req.statusText;
|
||||
qp.textContent = "" + req.status + " " + req.statusText;
|
||||
return;
|
||||
}
|
||||
body = $.el('body', {
|
||||
@ -3476,7 +3476,7 @@
|
||||
return $.prepend(form, controls);
|
||||
},
|
||||
resize: function() {
|
||||
return imgExpand.style.innerHTML = ".fitheight img[md5] + img {max-height:" + d.body.clientHeight + "px;}";
|
||||
return imgExpand.style.textContent = ".fitheight img[md5] + img {max-height:" + d.body.clientHeight + "px;}";
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -531,7 +531,7 @@ expandThread =
|
||||
|
||||
switch a.textContent[0]
|
||||
when '+'
|
||||
$('.op .container', thread)?.innerHTML = ''
|
||||
$('.op .container', thread)?.textContent = ''
|
||||
a.textContent = a.textContent.replace '+', 'X Loading...'
|
||||
$.cache pathname, (-> expandThread.parse @, pathname, thread, a)
|
||||
|
||||
@ -2343,7 +2343,7 @@ quoteInline =
|
||||
return unless inline.parentNode
|
||||
|
||||
if req.status isnt 200
|
||||
inline.innerHTML = "#{req.status} #{req.statusText}"
|
||||
inline.textContent = "#{req.status} #{req.statusText}"
|
||||
return
|
||||
|
||||
body = $.el 'body',
|
||||
@ -2397,7 +2397,7 @@ quotePreview =
|
||||
if quote.hash[1..] is replyID
|
||||
quote.className = 'forwardlink'
|
||||
else
|
||||
qp.innerHTML = "Loading #{id}..."
|
||||
qp.textContent = "Loading #{id}..."
|
||||
threadID = @pathname.split('/').pop() or $.x('ancestor::div[@class="thread"]', @).firstChild.id
|
||||
$.cache @pathname, (-> quotePreview.parse @, id, threadID)
|
||||
ui.hover e
|
||||
@ -2415,7 +2415,7 @@ quotePreview =
|
||||
return unless (qp = ui.el) and (qp.innerHTML is "Loading #{id}...")
|
||||
|
||||
if req.status isnt 200
|
||||
qp.innerHTML = "#{req.status} #{req.statusText}"
|
||||
qp.textContent = "#{req.status} #{req.statusText}"
|
||||
return
|
||||
|
||||
body = $.el 'body',
|
||||
@ -2739,7 +2739,7 @@ imgExpand =
|
||||
$.prepend form, controls
|
||||
|
||||
resize: ->
|
||||
imgExpand.style.innerHTML = ".fitheight img[md5] + img {max-height:#{d.body.clientHeight}px;}"
|
||||
imgExpand.style.textContent = ".fitheight img[md5] + img {max-height:#{d.body.clientHeight}px;}"
|
||||
|
||||
Main =
|
||||
init: ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user