From 3cf063fc7d579a15679c1e8aef816ffab3b8fb9a Mon Sep 17 00:00:00 2001 From: Aaron Quint Date: Sun, 27 Nov 2011 22:38:50 -0800 Subject: [PATCH] Fix graph deleting --- public/js/app.js | 4 ++-- public/js/default.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index 30b1f1b..8443ca1 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -437,9 +437,9 @@ var app = Sammy('body', function() { $.ajax({ type: 'post', data: '_method=DELETE', - url: '/graphs/'+uuid, + url: '/graphs/'+ this.params.uuid, success: function(resp){ - ctx.refresh(); + ctx.app.refresh(); } }); } diff --git a/public/js/default.js b/public/js/default.js index 783a1c2..9d15ac0 100644 --- a/public/js/default.js +++ b/public/js/default.js @@ -13112,9 +13112,9 @@ var app = Sammy('body', function() { $.ajax({ type: 'post', data: '_method=DELETE', - url: '/graphs/'+uuid, + url: '/graphs/'+ this.params.uuid, success: function(resp){ - ctx.refresh(); + ctx.app.refresh(); } }); }