No schemestring update if focus

pull/6923/head
Jeroen De Meerleer 4 years ago committed by Hypolite Petovan
parent a8cc4b3362
commit bf04bccc77
  1. 7
      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

Loading…
Cancel
Save