From b4f92c7de69466b2d4ec0c41b9b22e4511314a24 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 29 Jan 2009 09:26:39 +0000 Subject: Add delete support as a quick-edit option --- core/js/quick.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/js/quick.js') diff --git a/core/js/quick.js b/core/js/quick.js index e662f77f..457b6d4a 100644 --- a/core/js/quick.js +++ b/core/js/quick.js @@ -49,6 +49,7 @@ var quick_do = function(cont, pane, img) { dataType: "json", success: function(data) { img.css("opacity", "1"); + cont.removeClass("gLoadingLarge"); if (data.src) { img.attr("width", data.width); img.attr("height", data.height); @@ -58,8 +59,11 @@ var quick_do = function(cont, pane, img) { } else { img.css("margin-top", 0); } + } else if (data.location) { + window.location = data.location; + } else if (data.reload) { + window.location.reload(); } - cont.removeClass("gLoadingLarge"); } }); } -- cgit v1.2.3