Add search functionality to product listing and enable custom title editing

This commit is contained in:
2024-12-16 23:36:09 +01:00
parent 03a6d68c62
commit 730ff661c8
5 changed files with 173 additions and 11 deletions

View File

@@ -56,6 +56,19 @@ function confirm_message( m_content, m_url )
});
}
function escapeHtml(str)
{
var map =
{
'&': '&',
'<': '&lt;',
'>': '&gt;',
'"': '&quot;',
"'": '&#039;'
};
return str.replace(/[&<>"']/g, function(m) {return map[m];});
}
function get_elapsed_time_string(total_seconds)
{
function pretty_time_string(num)