diff options
| author | Andy Staudacher <andy.st@gmail.com> | 2009-06-29 21:03:40 -0700 |
|---|---|---|
| committer | Andy Staudacher <andy.st@gmail.com> | 2009-06-29 21:03:40 -0700 |
| commit | 21f228b1aed8b32dc9856add51f4ef8a3c7ced95 (patch) | |
| tree | 64d59bd5c8fc16515acbe6770ab28b082a1db336 /themes/admin_default | |
| parent | 0eb9a2aacd33d9d98726d08f828f10df4e462e9e (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 'themes/admin_default')
| -rw-r--r-- | themes/admin_default/views/admin.html.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/themes/admin_default/views/admin.html.php b/themes/admin_default/views/admin.html.php index fed1afe6..36deea9e 100644 --- a/themes/admin_default/views/admin.html.php +++ b/themes/admin_default/views/admin.html.php @@ -21,6 +21,10 @@ <?= $theme->script("lib/jquery.form.js") ?> <?= $theme->script("lib/jquery-ui.js") ?> <?= $theme->script("lib/gallery.common.js") ?> + <? /* MSG_CANCEL is required by gallery.dialog.js */ ?> + <script type="text/javascript"> + var MSG_CANCEL = "<?= t('Cancel') ?>"; + </script> <?= $theme->script("lib/gallery.dialog.js") ?> <?= $theme->script("lib/superfish/js/superfish.js") ?> <?= $theme->theme_script("js/jquery.dropshadow.js") ?> |
