From: Jeroen De Meerleer Date: Fri, 22 Feb 2019 15:44:12 +0000 (+0100) Subject: No schemestring update if focus X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bf04bccc77fed52a798b580f0f566d3dd27ef849;p=friendica.git No schemestring update if focus --- diff --git a/view/theme/frio/templates/theme_settings.tpl b/view/theme/frio/templates/theme_settings.tpl index 656d8dee84..1c870c92be 100644 --- a/view/theme/frio/templates/theme_settings.tpl +++ b/view/theme/frio/templates/theme_settings.tpl @@ -87,9 +87,10 @@ 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