avoid updating select options when text didn't change

This commit is contained in:
Jesse D. McDonald 2020-03-29 01:03:34 -05:00
parent b5c830ab68
commit f184df6447
1 changed files with 5 additions and 1 deletions

View File

@ -788,7 +788,11 @@ $(function (){
opt.remove();
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(){