tempfix csp topic transition bug
This commit is contained in:
parent
b1af963916
commit
eeb932bd4b
|
@ -264,8 +264,8 @@ function runWebSockets(resume=false) {
|
||||||
let data = "";
|
let data = "";
|
||||||
try {
|
try {
|
||||||
data = JSON.parse(event.data);
|
data = JSON.parse(event.data);
|
||||||
} catch(err) {
|
} catch(e) {
|
||||||
console.log(err);
|
console.log(e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -595,8 +595,7 @@ function mainInit(){
|
||||||
that.classList.add("filter_selected");
|
that.classList.add("filter_selected");
|
||||||
$(".topic_list_title h1").text(that.innerText);
|
$(".topic_list_title h1").text(that.innerText);
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
console.log("Unable to get script '"+url+"&js=1"+"'");
|
console.log("Unable to get script '"+url+"&js=1"+"'",e);
|
||||||
console.log("e",e);
|
|
||||||
console.trace();
|
console.trace();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -641,8 +640,7 @@ function mainInit(){
|
||||||
rebuildPaginator(data.LastPage);
|
rebuildPaginator(data.LastPage);
|
||||||
rebindPaginator();
|
rebindPaginator();
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
console.log("Unable to get script '"+url+q+"&js=1"+"'");
|
console.log("Unable to get script '"+url+q+"&js=1"+"'",e);
|
||||||
console.log("e",e);
|
|
||||||
console.trace();
|
console.trace();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -658,9 +656,9 @@ function mainInit(){
|
||||||
$(".submit_edit").click(function(ev) {
|
$(".submit_edit").click(function(ev) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
let bp = $(this).closest('.editable_parent');
|
let bp = $(this).closest('.editable_parent');
|
||||||
let block = bp.find('.editable_block').eq(0);
|
let bl = bp.find('.editable_block').eq(0);
|
||||||
let content = block.find('input').eq(0).val();
|
let content = bl.find('input').eq(0).val();
|
||||||
block.html(content);
|
bl.html(content);
|
||||||
|
|
||||||
let formAction = $(this).closest('a').attr("href");
|
let formAction = $(this).closest('a').attr("href");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
@ -894,7 +892,7 @@ function mainInit(){
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$(".rowtopic a,a.rowtopic,a.forum_poster").click(function(ev) {
|
/*$(".rowtopic a,a.rowtopic,a.forum_poster").click(function(ev) {
|
||||||
let base = this.getAttribute("href");
|
let base = this.getAttribute("href");
|
||||||
loadArb(base,base+"?i=1", () => {
|
loadArb(base,base+"?i=1", () => {
|
||||||
unbindTopic();
|
unbindTopic();
|
||||||
|
@ -902,7 +900,7 @@ function mainInit(){
|
||||||
});
|
});
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
})
|
})*/
|
||||||
$("a").click(function(ev) {
|
$("a").click(function(ev) {
|
||||||
let base = this.getAttribute("href");
|
let base = this.getAttribute("href");
|
||||||
if(base!="/topics/") return;
|
if(base!="/topics/") return;
|
||||||
|
|
Loading…
Reference in New Issue