summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/details/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-12 03:31:07 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-12 03:31:07 +0100
commit942a72123ecf7ed91cf3cba1124adc11a3615208 (patch)
tree42fa36700fd80c4903acb0ecb2b1e0bbdc8da2d6 /public/assets/js/lib/views/details/index.js
parent41d0bd185c19c8a51ed9b85700f52181b6cc5012 (diff)
404 page and maybe deleting threads
Diffstat (limited to 'public/assets/js/lib/views/details/index.js')
-rw-r--r--public/assets/js/lib/views/details/index.js7
1 files changed, 6 insertions, 1 deletions
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){