diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-29 09:26:39 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-29 09:26:39 +0000 |
commit | b4f92c7de69466b2d4ec0c41b9b22e4511314a24 (patch) | |
tree | fa174f59d2cfaaf993600735f57053ba0b059ec4 /core/js | |
parent | 6091350c9454c92e5a975901eff8f5f46bee3045 (diff) |
Add delete support as a quick-edit option
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/quick.js | 6 |
1 files changed, 5 insertions, 1 deletions
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"); } }); } |