]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/templates/theme_settings.tpl
frio: remove shome whitespace
[friendica.git] / view / theme / frio / templates / theme_settings.tpl
index d4438caa8cb213453145264612518d86794e9197..92b463694f8b8e6c72412311e43ec2a5d753bdbe 100644 (file)
@@ -31,7 +31,7 @@
 </div>
 
 <script type="text/javascript">
-       $(function(){
+       $(document).ready(function() {
                $("#frio_nav_bg, #frio_nav_icon_color, #frio_background_color, #frio_link_color").colorpicker({format: 'hex', align: 'left'});
 
                // show image options when user user starts to type the address of the image
                        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>