From bf04bccc77fed52a798b580f0f566d3dd27ef849 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Fri, 22 Feb 2019 16:44:12 +0100 Subject: [PATCH] No schemestring update if focus --- view/theme/frio/templates/theme_settings.tpl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.39.5