Ticket 86 (addendum) - Guard against themes that don't define MSG_CANCEL and add the message to admin_default as

well.
This commit is contained in:
Andy Staudacher
2009-06-29 21:03:40 -07:00
parent 0eb9a2aacd
commit 21f228b1ae
2 changed files with 6 additions and 0 deletions

View File

@@ -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") ?>