No schemestring update if focus
This commit is contained in:
parent
a8cc4b3362
commit
bf04bccc77
1 changed files with 4 additions and 3 deletions
|
@ -87,10 +87,11 @@
|
||||||
if ($("#id_frio_login_bg_color").length) {
|
if ($("#id_frio_login_bg_color").length) {
|
||||||
theme.login_bg_color = $("#id_frio_login_bg_color").val();
|
theme.login_bg_color = $("#id_frio_login_bg_color").val();
|
||||||
}
|
}
|
||||||
|
if (!($("#id_frio_share_string").is(":focus"))){
|
||||||
var share_string = JSON.stringify(theme);
|
var share_string = JSON.stringify(theme);
|
||||||
$("#id_frio_share_string").val(share_string);
|
$("#id_frio_share_string").val(share_string);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// interval because jquery.val does not trigger events
|
// interval because jquery.val does not trigger events
|
||||||
window.setInterval(GenerateShareString, 500);
|
window.setInterval(GenerateShareString, 500);
|
||||||
|
|
Loading…
Reference in a new issue