CC-6131 - add div to show when search is active; css tweaks

This commit is contained in:
Duncan Sommerville 2015-09-03 13:41:29 -04:00
parent 888762739e
commit c928627d8b
4 changed files with 39 additions and 9 deletions

View file

@ -712,9 +712,18 @@ var AIRTIME = (function(AIRTIME) {
"error": handleAjaxError
}).done(function(data) {
if (data.iTotalRecords > data.iTotalDisplayRecords) {
$('#filter_message').text(
$.i18n._("Filtering out ") + (data.iTotalRecords - data.iTotalDisplayRecords)
+ $.i18n._(" of ") + data.iTotalRecords
+ $.i18n._(" records")
);
$('#library_empty').hide();
$('#library_display').find('tr:has(td.dataTables_empty)').show();
} else {
$('#filter_message').text("");
}
$('#library_content').find('.dataTables_filter input[type="text"]')
.css('padding-right', $('#advanced-options').find('button').outerWidth());
});
},
"fnRowCallback": AIRTIME.library.fnRowCallback,