]> git.mxchange.org Git - friendica.git/commitdiff
frio: fix wrong slider position in the theme_settings
authorrabuzarus <>
Mon, 23 Oct 2017 19:15:46 +0000 (21:15 +0200)
committerrabuzarus <>
Mon, 23 Oct 2017 19:15:46 +0000 (21:15 +0200)
view/theme/frio/templates/theme_settings.tpl

index cc9d941f05c741e7c37e63df22b414dec4032101..92b463694f8b8e6c72412311e43ec2a5d753bdbe 100644 (file)
                        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);
+               });
+
        });
 </script>