mirror of
https://github.com/asticode/go-astiencoder.git
synced 2025-12-24 13:57:53 +08:00
Fixed 404 page
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -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" . }}
|
||||
Reference in New Issue
Block a user