From 1db5124fe892cf65b1c4d530770c19b68ce51158 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Wed, 16 Nov 2022 16:03:28 +0100 Subject: [PATCH] (xp 5d7f594) fixed #1796 fixed js so single quotes don't break the page in page title --- admin/themes/default/template/album_notification.tpl | 5 ++++- admin/themes/default/template/element_set_ranks.tpl | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/admin/themes/default/template/album_notification.tpl b/admin/themes/default/template/album_notification.tpl index 6b65b3668..fb58cdb01 100644 --- a/admin/themes/default/template/album_notification.tpl +++ b/admin/themes/default/template/album_notification.tpl @@ -3,8 +3,11 @@ {combine_css id='jquery.selectize' path="themes/default/js/plugins/selectize.{$themeconf.colorscheme}.css"} {footer_script} + +const cat_nav = '{$CATEGORIES_NAV|escape:javascript}'; + jQuery(document).ready(function() { - $("h1").append(' {$CATEGORIES_NAV}'); + $("h1").append(' '+cat_nav+''); jQuery("input[name=who]").change(function () { checkWhoOptions(); diff --git a/admin/themes/default/template/element_set_ranks.tpl b/admin/themes/default/template/element_set_ranks.tpl index c13429d39..de88687fc 100644 --- a/admin/themes/default/template/element_set_ranks.tpl +++ b/admin/themes/default/template/element_set_ranks.tpl @@ -1,7 +1,10 @@ {combine_script id='common' load='footer' path='admin/themes/default/js/common.js'} {footer_script require='jquery.ui.sortable'} + +const cat_nav = '{$CATEGORIES_NAV|escape:javascript}'; + jQuery(document).ready(function() { - $("h1").append(' {$CATEGORIES_NAV}'); + $("h1").append(' '+cat_nav+''); function checkOrderOptions() { jQuery("#image_order_user_define_options").hide();