turn code more robust by using sprintf instead of replace for a language key

This commit is contained in:
Linty
2024-02-09 17:35:42 +01:00
parent d2e8d95d94
commit 562170528c

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;