From e8e600879a616a9361d8d844c60acf68f1bfb155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauro=20Ferr=C3=A3o?= Date: Fri, 5 Jul 2024 17:21:08 +0100 Subject: [PATCH] Fix for older JS rendering engines (#2612) relates to xibosignage/xibo#3441 --- modules/templates/currency-static.xml | 4 ++-- modules/templates/stock-static.xml | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/templates/currency-static.xml b/modules/templates/currency-static.xml index ddca85c2e6..4168dc6072 100644 --- a/modules/templates/currency-static.xml +++ b/modules/templates/currency-static.xml @@ -331,7 +331,7 @@ body { var overrideItemPerPage = { itemsPerPage: 0, }; -$(target).xiboLayoutScaler({...properties, ...overrideItemPerPage}); +$(target).xiboLayoutScaler($.extend({}, properties, overrideItemPerPage)); // Get items var templateItems = $(target).find(".template-item"); @@ -610,7 +610,7 @@ body { var overrideItemPerPage = { itemsPerPage: 0, }; -$(target).xiboLayoutScaler({...properties, ...overrideItemPerPage}); +$(target).xiboLayoutScaler($.extend({}, properties, overrideItemPerPage)); // Get template items var templateItems = $(target).find(".template-item"); diff --git a/modules/templates/stock-static.xml b/modules/templates/stock-static.xml index be331485ce..189ab9149d 100644 --- a/modules/templates/stock-static.xml +++ b/modules/templates/stock-static.xml @@ -416,8 +416,7 @@ body { var overrideItemPerPage = { itemsPerPage: 0, }; - -$(target).xiboLayoutScaler({...properties, ...overrideItemPerPage}); +$(target).xiboLayoutScaler($.extend({}, properties, overrideItemPerPage)); // Get items var items = $(target).find(".template-item");