bring back live name updates while typing
This commit is contained in:
parent
455e486075
commit
d9b6210841
|
|
@ -983,18 +983,7 @@ $(function (){
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
let idleTimeoutId = undefined;
|
$('#cb_light_name, #cb_dark_name').on('input', function() { putMeta(); });
|
||||||
$('#cb_light_name, #cb_dark_name').on('input', function() {
|
|
||||||
if (idleTimeoutId !== undefined) {
|
|
||||||
clearTimeout(idleTimeoutId);
|
|
||||||
}
|
|
||||||
idleTimeoutId = setTimeout(function() { putMeta(); }, 500);
|
|
||||||
}).on('blur', function() {
|
|
||||||
if (idleTimeoutId !== undefined) {
|
|
||||||
clearTimeout(idleTimeoutId);
|
|
||||||
}
|
|
||||||
putMeta();
|
|
||||||
});
|
|
||||||
|
|
||||||
function updateTitle(opt){
|
function updateTitle(opt){
|
||||||
opt = $(opt);
|
opt = $(opt);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue