Fixed 404 page

This commit is contained in:
Quentin Renard
2018-10-06 15:30:50 +02:00
parent 6da650aadb
commit 2a2e2e4866
2 changed files with 11 additions and 3 deletions

View File

@@ -41,7 +41,11 @@ const base = {
menu.init(data.responseJSON)
// Custom function
if (typeof pageFunc !== "undefined" && pageFunc !== null) pageFunc(data)
if (typeof pageFunc !== "undefined" && pageFunc !== null) {
pageFunc(data)
} else {
asticode.loader.hide()
}
}
})
},

View File

@@ -1,7 +1,11 @@
{{ define "title" }}Page not found{{ end }}
{{ define "css" }}{{ end }}
{{ define "html" }}
TODO
This page doesn't exist.
{{ end }}
{{ define "js" }}
<script type="text/javascript">
base.init()
</script>
{{ end }}
{{ define "js" }}{{ end }}
{{ template "base" . }}