avoid updating select options when text didn't change
This commit is contained in:
parent
b5c830ab68
commit
f184df6447
|
|
@ -788,7 +788,11 @@ $(function (){
|
||||||
opt.remove();
|
opt.remove();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
opt.text(opt.data('title') + age_str);
|
|
||||||
|
const newText = opt.data('title') + age_str;
|
||||||
|
if (opt.text() !== newText) {
|
||||||
|
opt.text(newText);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
window.setTimeout(function(){
|
window.setTimeout(function(){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue