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/views/details/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'public/assets/js/lib/views/details/index.js') diff --git a/public/assets/js/lib/views/details/index.js b/public/assets/js/lib/views/details/index.js index 5550173..f8e9d50 100644 --- a/public/assets/js/lib/views/details/index.js +++ b/public/assets/js/lib/views/details/index.js @@ -18,7 +18,12 @@ var DetailsView = View.extend({ load: function(id){ id = id.replace(/\D/g, "") - $.get(this.action + id, this.populate.bind(this)) + $.ajax({ + method: "get", + url: this.action + id, + success: this.populate.bind(this), + error: app.router.error404, + }) }, populate: function(data){ -- cgit v1.2.3-70-g09d2