diff options
Diffstat (limited to 'themes')
-rw-r--r-- | themes/admin_default/views/admin.html.php | 2 | ||||
-rw-r--r-- | themes/default/views/movie.html.php | 2 | ||||
-rw-r--r-- | themes/default/views/page.html.php | 2 | ||||
-rw-r--r-- | themes/default/views/photo.html.php | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/themes/admin_default/views/admin.html.php b/themes/admin_default/views/admin.html.php index d27f9260..61821428 100644 --- a/themes/admin_default/views/admin.html.php +++ b/themes/admin_default/views/admin.html.php @@ -23,7 +23,7 @@ <?= $theme->script("gallery.common.js") ?> <? /* MSG_CANCEL is required by gallery.dialog.js */ ?> <script type="text/javascript"> - var MSG_CANCEL = "<?= t('Cancel') ?>"; + var MSG_CANCEL = "<?= t('Cancel')->for_js() ?>"; </script> <?= $theme->script("gallery.dialog.js") ?> <?= $theme->script("superfish/js/superfish.js") ?> diff --git a/themes/default/views/movie.html.php b/themes/default/views/movie.html.php index 1f25a626..75d51eff 100644 --- a/themes/default/views/movie.html.php +++ b/themes/default/views/movie.html.php @@ -20,7 +20,7 @@ </div> <script type="text/javascript"> - var ADD_A_COMMENT = "<?= t("Add a comment") ?>"; + var ADD_A_COMMENT = "<?= t("Add a comment")->for_js() ?>"; </script> <?= $theme->photo_bottom() ?> </div> diff --git a/themes/default/views/page.html.php b/themes/default/views/page.html.php index ea2be37b..8d9f0caa 100644 --- a/themes/default/views/page.html.php +++ b/themes/default/views/page.html.php @@ -51,7 +51,7 @@ <?= $theme->script("gallery.common.js") ?> <? /* MSG_CANCEL is required by gallery.dialog.js */ ?> <script type="text/javascript"> - var MSG_CANCEL = "<?= t('Cancel') ?>"; + var MSG_CANCEL = "<?= t('Cancel')->for_js() ?>"; </script> <?= $theme->script("gallery.dialog.js") ?> <?= $theme->script("gallery.form.js") ?> diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php index 1f92e9ba..fcf597cf 100644 --- a/themes/default/views/photo.html.php +++ b/themes/default/views/photo.html.php @@ -5,7 +5,7 @@ <script> $(document).ready(function() { $(".gFullSizeLink").click(function() { - show_full_size("<?= $theme->item()->file_url() ?>", "<?= $theme->item()->width ?>", "<?= $theme->item()->height ?>"); + show_full_size("<?= $theme->item()->file_url()->for_js() ?>", "<?= $theme->item()->width ?>", "<?= $theme->item()->height ?>"); return false; }); }); @@ -55,7 +55,7 @@ </div> <script type="text/javascript"> - var ADD_A_COMMENT = "<?= t("Add a comment") ?>"; + var ADD_A_COMMENT = "<?= t("Add a comment")->for_js() ?>"; </script> <?= $theme->photo_bottom() ?> </div> |