don't embed huge docs (defer to ajax), closes #9

This commit is contained in:
ed
2022-05-13 17:08:17 +02:00
parent c110ccb9ae
commit 67c298e66b
3 changed files with 19 additions and 4 deletions

View File

@@ -2441,6 +2441,14 @@ var showfile = (function () {
var em = QS('#bdoc>pre');
if (em)
em = [r.sname(window.location.search), window.location.hash, em.textContent];
else {
var m = /[?&]doc=([^&]+)/.exec(window.location.search);
if (m) {
setTimeout(function () {
r.show(uricom_dec(m[1])[0], true);
}, 1);
}
}
r.setstyle = function () {
if (window['no_prism'])
@@ -4166,6 +4174,7 @@ var treectl = (function () {
xhr.open('GET', '/?am_js', true);
xhr.send();
r.ls_cb = showfile.addlinks;
return r.reqls(get_evpath(), false, true);
}