|
|
|
@@ -521,6 +521,29 @@ app.state.Home = function() |
|
|
|
updatePaging( +$( this ).val() );
|
|
|
|
});
|
|
|
|
|
|
|
|
$content.on('input', '[data-id="appointment-search-filter"]', function(e)
|
|
|
|
{
|
|
|
|
var searchTerm = $(this).val().toLowerCase();
|
|
|
|
|
|
|
|
// Filter elements
|
|
|
|
$('[data-type="appointment-item-container"]').each(function() {
|
|
|
|
|
|
|
|
var $div = $(this);
|
|
|
|
let appCat = $div.find('.appointment-category').text().toLowerCase();
|
|
|
|
let appSub = $div.find('.appointment-subject').text().toLowerCase();
|
|
|
|
let appDate = $div.find('.appointment-datetime').text().toLowerCase();
|
|
|
|
|
|
|
|
if (appCat.includes(searchTerm) ||
|
|
|
|
appSub.includes(searchTerm) ||
|
|
|
|
appDate.includes(searchTerm) ||
|
|
|
|
searchTerm === '') {
|
|
|
|
$div.show();
|
|
|
|
} else {
|
|
|
|
$div.hide();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$content.on( 'click', '[data-type="appointment-short-info"]', function( e )
|
|
|
|
{
|
|
|
|
var $eTarget = $( e.target );
|
|
|
|
|