summaryrefslogtreecommitdiff
path: root/lib/gallery.dialog.js
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-06-29 21:03:40 -0700
committerAndy Staudacher <andy.st@gmail.com>2009-06-29 21:03:40 -0700
commit21f228b1aed8b32dc9856add51f4ef8a3c7ced95 (patch)
tree64d59bd5c8fc16515acbe6770ab28b082a1db336 /lib/gallery.dialog.js
parent0eb9a2aacd33d9d98726d08f828f10df4e462e9e (diff)
Ticket 86 (addendum) - Guard against themes that don't define MSG_CANCEL and add the message to admin_default as
well.
Diffstat (limited to 'lib/gallery.dialog.js')
-rw-r--r--lib/gallery.dialog.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gallery.dialog.js b/lib/gallery.dialog.js
index 6d986aa0..fc66323e 100644
--- a/lib/gallery.dialog.js
+++ b/lib/gallery.dialog.js
@@ -98,6 +98,8 @@ function openDialog(element, on_success) {
}
function on_form_loaded() {
+ // Should be defined (and localized) in the theme
+ MSG_CANCEL = MSG_CANCEL || 'Cancel';
var eCancel = '<a href="javascript: closeDialog()" class="gCancel">' + MSG_CANCEL + '</a>';
if ($("#gDialog .submit").length) {
$("#gDialog .submit").addClass("ui-state-default ui-corner-all");