Add search functionality to product listing and enable custom title editing
This commit is contained in:
@@ -56,6 +56,19 @@ function confirm_message( m_content, m_url )
|
||||
});
|
||||
}
|
||||
|
||||
function escapeHtml(str)
|
||||
{
|
||||
var map =
|
||||
{
|
||||
'&': '&',
|
||||
'<': '<',
|
||||
'>': '>',
|
||||
'"': '"',
|
||||
"'": '''
|
||||
};
|
||||
return str.replace(/[&<>"']/g, function(m) {return map[m];});
|
||||
}
|
||||
|
||||
function get_elapsed_time_string(total_seconds)
|
||||
{
|
||||
function pretty_time_string(num)
|
||||
|
||||
Reference in New Issue
Block a user