From 460c8a946fe105e1a265d8ea9d25104236801b23 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 30 Dec 2018 02:03:34 +0100 Subject: [PATCH] Fixed forum --- shared/js/load.ts | 6 +++--- shared/js/ui/modal/ModalSettings.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/shared/js/load.ts b/shared/js/load.ts index b4b4e3d4..3f6217a3 100644 --- a/shared/js/load.ts +++ b/shared/js/load.ts @@ -109,7 +109,7 @@ namespace loader { let buffer = ""; let _or = " or "; for(let entry of path) - buffer += _or + formatPath(entry); + buffer += _or + script_name(entry); return buffer.slice(_or.length); } else return "" + path + ""; } @@ -134,7 +134,7 @@ namespace loader { return error; }); } else { - return new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { const tag: HTMLScriptElement = document.createElement("script"); const error_handler = (event: ErrorEvent) => { @@ -272,7 +272,7 @@ const loader_javascript = { loader.register_task(loader.Stage.JAVASCRIPT, { name: "scripts release", priority: 20, - function: loadRelease /* fixme */ + function: loader_javascript.loadRelease }); } }, diff --git a/shared/js/ui/modal/ModalSettings.ts b/shared/js/ui/modal/ModalSettings.ts index 4c23bf57..d5387eac 100644 --- a/shared/js/ui/modal/ModalSettings.ts +++ b/shared/js/ui/modal/ModalSettings.ts @@ -485,7 +485,7 @@ namespace Modals { if(selected_type == IdentitifyType.TEAFORO) { const forum_tag = settings_tag.find(".identity-settings-teaforo"); - forum_tag.find(".connected .disconnected").hide(); + forum_tag.find(".connected, .disconnected").hide(); if(identity && identity.valid()) { forum_tag.find(".connected").show(); } else {