]> git.mxchange.org Git - friendica.git/commitdiff
Added string creation
authorJeroen De Meerleer <me@jeroened.be>
Thu, 21 Feb 2019 17:37:11 +0000 (18:37 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 23 Mar 2019 02:28:07 +0000 (22:28 -0400)
view/theme/frio/templates/theme_settings.tpl

index 4f26e090eab2143cc698b97e0c46338bc5126308..0598c7e48bc41ccf3b0d8981a07fbb2d40336181 100644 (file)
 
 <script type="text/javascript">
        $(document).ready(function() {
+
+           // Parse initial share_string
+           var nav_bg = $("#id_frio_nav_bg").val();
+           var nav_icon_color = $("#id_frio_nav_icon_color").val();
+           var link_color = $("#id_frio_link_color").val();
+           var background_color = $("#id_frio_background_color").val();
+           var contentbg_transp = $("#id_frio_contentbg_transp").val();
+           var background_image = $("#id_frio_background_image").val();
+
+           var share_string = "{nav_bg: '" + nav_bg + "', nav_icon_color: '" + nav_icon_color + "', link_color: '" + link_color + "',  background_color: '" + background_color + "', contentbg_transp: '" + contentbg_transp + "', background_image: '" + background_image + "'}";
+        $("#id_frio_share_string").val(share_string);
+
+           // Create colorpickers
                $("#frio_nav_bg, #frio_nav_icon_color, #frio_background_color, #frio_link_color, #frio_login_bg_color").colorpicker({format: 'hex', align: 'left'});
 
                // show image options when user user starts to type the address of the image