mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
turn code more robust by using sprintf instead of replace for a language key
This commit is contained in:
@@ -489,7 +489,7 @@ function lineConstructor(line, id, imageDisplay) {
|
|||||||
count_more++;
|
count_more++;
|
||||||
return `<b>${str_search_details[key]}</b> : ${value_str}`;
|
return `<b>${str_search_details[key]}</b> : ${value_str}`;
|
||||||
}).join(' <br />');
|
}).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');
|
newLine.find(".detail-item-3").attr('title', search_details_str).removeClass('hide');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user