From: rabuzarus <> Date: Mon, 23 Oct 2017 19:15:46 +0000 (+0200) Subject: frio: fix wrong slider position in the theme_settings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7e273ba51bc1d00f8778a3afc73965b4fc52d284;p=friendica.git frio: fix wrong slider position in the theme_settings --- 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); + }); + });