Archived
1
0

try fixing expand video

This commit is contained in:
Jeff Becker 2017-01-16 11:06:50 -05:00
parent ff8bdcf08c
commit 963637e750
5 changed files with 8 additions and 10 deletions

View File

@ -3,7 +3,8 @@ function onready(fnc) {
onready_callbacks.push(fnc);
}
function ready() {
function ready(prefix) {
configRoot = prefix || "/";
for (var i = 0; i < onready_callbacks.length; i++) {
onready_callbacks[i]();
}

View File

@ -93,6 +93,3 @@ function nntpchan_submit_censor(form, regular_url) {
nntpchan_apicall(url, handle_result, null, "POST", formdata);
}
onready(function() {
});

View File

@ -76,8 +76,8 @@
var prefix = "{{board.Prefix}}";
var e = document.getElementById("nntpchan_banner");
nntpchan_inject_banners(e, prefix);
init(prefix);
ready();
if(init) init(prefix);
ready(prefix);
</script>
<hr/>
<footer>

View File

@ -48,8 +48,8 @@
var prefix = "{{thread.Prefix}}";
var e = document.getElementById("nntpchan_banner");
nntpchan_inject_banners(e, prefix);
init(prefix);
ready();
if(init) init(prefix);
ready(prefix);
</script>
<hr/>
<footer>

View File

@ -81,8 +81,8 @@
var prefix = "{{prefix}}";
var e = document.getElementById("nntpchan_banner");
nntpchan_inject_banners(e, prefix);
init(prefix);
ready();
if(init) init(prefix);
ready(prefix);
</script>
<hr/>
<footer>