]> git.mxchange.org Git - friendica.git/commitdiff
No schemestring update if focus
authorJeroen De Meerleer <me@jeroened.be>
Fri, 22 Feb 2019 15:44:12 +0000 (16:44 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 23 Mar 2019 02:28:11 +0000 (22:28 -0400)
view/theme/frio/templates/theme_settings.tpl

index 656d8dee84dc46adf882587fa925eab6b8b672f8..1c870c92be94ea02a0e2c2d74b1d5a1b30dc1cdb 100644 (file)
                        if ($("#id_frio_login_bg_color").length) {
                                theme.login_bg_color = $("#id_frio_login_bg_color").val();
                        }
-
-                       var share_string = JSON.stringify(theme);
-                       $("#id_frio_share_string").val(share_string);
+                       if (!($("#id_frio_share_string").is(":focus"))){
+                               var share_string = JSON.stringify(theme);
+                               $("#id_frio_share_string").val(share_string);
+                       }
                }
 
                // interval because jquery.val does not trigger events