]> 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 83b466b73b292d38bb71df70f49033c60879f5fb..92b463694f8b8e6c72412311e43ec2a5d753bdbe 100644 (file)
@@ -30,8 +30,8 @@
 {{/foreach}}
 </div>
 
-<script>
-       $(function(){
+<script type="text/javascript">
+       $(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>
 
@@ -68,6 +75,6 @@
 </div>
 <div class="clearfix"></div>
 
-<script>
+<script type="text/javascript">
     $(".inputRange").rangeinput();
 </script>