summaryrefslogtreecommitdiff
path: root/modules/gallery/js
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-08-29 17:34:39 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-08-29 17:34:39 -0600
commitc9d2e222662746c1a8d1866dcd480f1440898735 (patch)
tree938b7b88efbf55c9228932a9cf6afcc8c38a1c90 /modules/gallery/js
parent75ee962c9e1b6a0c24928f80245430db71780a3d (diff)
parenta1ce2d3f0aff6dcb7149f2d7327a10079e5c78f8 (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/js')
-rw-r--r--modules/gallery/js/l10n_client.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/gallery/js/l10n_client.js b/modules/gallery/js/l10n_client.js
index 80fe166b..35986e5a 100644
--- a/modules/gallery/js/l10n_client.js
+++ b/modules/gallery/js/l10n_client.js
@@ -205,6 +205,19 @@ Gallery.behaviors.l10nClient = function(context) {
Gallery.l10nClient.toggle(0);
}
});
+
+ // Close the l10n client using an AJAX call and refreshing the page
+ $('#gCloseL10n').click(function(event) {
+ $.ajax({
+ type: "GET",
+ url: toggle_l10n_mode_url,
+ data: "csrf=" + csrf,
+ success: function() {
+ window.location.reload(true);
+ }
+ });
+ event.preventDefault();
+ });
// Register keybindings using jQuery hotkeys
// TODO: Either remove hotkeys code or add query.hotkeys.js.