From 7e273ba51bc1d00f8778a3afc73965b4fc52d284 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Mon, 23 Oct 2017 21:15:46 +0200 Subject: [PATCH] frio: fix wrong slider position in the theme_settings --- view/theme/frio/templates/theme_settings.tpl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/view/theme/frio/templates/theme_settings.tpl b/view/theme/frio/templates/theme_settings.tpl index cc9d941f05..92b463694f 100644 --- a/view/theme/frio/templates/theme_settings.tpl +++ b/view/theme/frio/templates/theme_settings.tpl @@ -60,6 +60,13 @@ theme: 'theme-frio', }); + // The position of the slider is wrong calculated on hidden elements. + // So set an event listener toggle and update the jRange value. + $(document).on('click', '#custom-settings-title a', function() { + var bgTransp = $('#frio_contentbg_transp').val(); + $('.slider-input').jRange('setValue', bgTransp); + }); + });