summaryrefslogtreecommitdiff
path: root/core/js
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-05-21 02:24:37 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-05-21 02:24:37 +0000
commit09c8953af7696bda51e052243950f9830f905463 (patch)
tree6e7b65571d1200c65dabaf522db769ca84cc55ee /core/js
parentd4189d947da202062dfc9cd030ebb85e44683d4a (diff)
Provide delete confirmations in quick pane and organize features. If
I've missed any spots let me know.
Diffstat (limited to 'core/js')
-rw-r--r--core/js/quick.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/js/quick.js b/core/js/quick.js
index 750bdd40..e7f35cea 100644
--- a/core/js/quick.js
+++ b/core/js/quick.js
@@ -39,6 +39,10 @@ var show_quick = function() {
);
$("#gQuickPane a:not(.options)").click(function(e) {
e.preventDefault();
+ if ($(this).attr("id") == "gQuickDelete" &&
+ !confirm($(this).attr("ref"))) {
+ return;
+ }
quick_do(cont, $(this), img);
});
$("#gQuickPane a.options").click(function(e) {
@@ -88,3 +92,4 @@ var quick_do = function(cont, pane, img) {
var hide_quick = function() {
$("#gQuickPane").remove();
};
+