From 942a72123ecf7ed91cf3cba1124adc11a3615208 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 12 Dec 2017 03:31:07 +0100 Subject: 404 page and maybe deleting threads --- public/assets/js/lib/router.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'public/assets/js/lib/router.js') diff --git a/public/assets/js/lib/router.js b/public/assets/js/lib/router.js index f9850e8..a83437a 100644 --- a/public/assets/js/lib/router.js +++ b/public/assets/js/lib/router.js @@ -82,4 +82,11 @@ var SiteRouter = Router.extend({ app.view.load() }, + error404: function(){ + $("content").hide() + $("#error_404").show() + $("h1").html("error: page not found") + $("body").removeClass("loading") + }, + }) \ No newline at end of file -- cgit v1.2.3-70-g09d2