summaryrefslogtreecommitdiff
path: root/modules/gallery/js/quick.js
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-07-11 06:51:21 -0700
committerBharat Mediratta <bharat@menalto.com>2009-07-11 06:51:21 -0700
commit214d977f4dc9ac78f4571a7cc89109fd95f5a2eb (patch)
tree0910b2047d050888b861733f09c9af78100744fa /modules/gallery/js/quick.js
parent4d0099e7165a4a1508eea58613cdc75e116464ff (diff)
Don't close the dialog window after we successfully complete an
action. The expectation is that we're going to reload the page (or redirect to a new url). If we close the dialog, then we can trigger the onhover for items we've just deleted causing errors. Simplify the API while we're at it by getting rid of the no-longer-used on_success argument to openDialog() This fixes #528.
Diffstat (limited to 'modules/gallery/js/quick.js')
-rw-r--r--modules/gallery/js/quick.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/js/quick.js b/modules/gallery/js/quick.js
index 2dcb1c36..3ac97f8e 100644
--- a/modules/gallery/js/quick.js
+++ b/modules/gallery/js/quick.js
@@ -46,7 +46,7 @@ var quick_do = function(cont, pane, img) {
return false;
}
if (pane.hasClass("gDialogLink")) {
- openDialog(pane, function() { window.location.reload(); });
+ openDialog(pane);
} else {
img.css("opacity", "0.1");
cont.addClass("gLoadingLarge");