(cp 562170528) turn code more robust by using sprintf instead of replace

This commit is contained in:
Linty
2024-02-09 17:38:03 +01:00
parent 7ecca50037
commit df8e34b97f

View File

@@ -489,7 +489,7 @@ function lineConstructor(line, id, imageDisplay) {
count_more++;
return `<b>${str_search_details[key]}</b> : ${value_str}`;
}).join(' <br />');
newLine.find(".detail-item-3").html(str_and_more.replace('%d', count_more)).addClass('icon-info-circled-1 tiptip');
newLine.find(".detail-item-3").html(sprintf(str_and_more, count_more)).addClass('icon-info-circled-1 tiptip');
newLine.find(".detail-item-3").attr('title', search_details_str).removeClass('hide');
}
break;