summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/details/index.js
diff options
context:
space:
mode:
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){