fixed client forum save bug
This commit is contained in:
parent
90ef029829
commit
31e55579b4
3 changed files with 12 additions and 3245 deletions
3245
client/declarations/imports_shared.d.ts
vendored
3245
client/declarations/imports_shared.d.ts
vendored
File diff suppressed because it is too large
Load diff
|
@ -26,4 +26,8 @@ namespace forum {
|
|||
export function logout() {
|
||||
ipc.send("teaforo-logout");
|
||||
}
|
||||
|
||||
export function sync_main() {
|
||||
ipc.send("teaforo-update");
|
||||
}
|
||||
}
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue