fixed #1796 fixed js so single quotes don't break the page in page title

This commit is contained in:
Matthieu Leproux
2022-11-16 16:01:59 +01:00
parent caa4d12635
commit 5d7f594224
2 changed files with 8 additions and 2 deletions

View File

@@ -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(' <span style="letter-spacing:0">{$CATEGORIES_NAV}</span>');
$("h1").append(' <span style="letter-spacing:0">'+cat_nav+'</span>');
jQuery("input[name=who]").change(function () {
checkWhoOptions();

View File

@@ -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(' <span style="letter-spacing:0">{$CATEGORIES_NAV}</span>');
$("h1").append(' <span style="letter-spacing:0">'+cat_nav+'</span>');
function checkOrderOptions() {
jQuery("#image_order_user_define_options").hide();