fixed client forum save bug

This commit is contained in:
WolverinDEV 2019-04-15 19:20:46 +02:00
parent 90ef029829
commit 31e55579b4
3 changed files with 12 additions and 3245 deletions

File diff suppressed because it is too large Load diff

View file

@ -26,4 +26,8 @@ namespace forum {
export function logout() {
ipc.send("teaforo-logout");
}
export function sync_main() {
ipc.send("teaforo-update");
}
}

View file

@ -462,6 +462,14 @@ const loader_javascript = {
if(!window.require) {
await loader.load_script(["vendor/jquery/jquery.min.js"]);
} else {
loader.register_task(loader.Stage.JAVASCRIPT_INITIALIZING, {
name: "forum sync",
priority: 10,
function: async () => {
forum.sync_main();
}
});
}
/* bootstrap material design and libs */