Add clear search button to data tables.

This commit is contained in:
JonnyWong16 2015-08-19 13:25:29 -07:00
commit 01b3ae377b
8 changed files with 43 additions and 11 deletions

View file

@ -86,8 +86,9 @@ from plexpy import helpers
$(document).ready(function() {
LoadPlexPyLogs();
clearSearchButton('log_table', log_table);
});
function LoadPlexPyLogs() {
log_table_options.ajax = {
"url": "getLog"
@ -105,11 +106,13 @@ from plexpy import helpers
$("#plexpy-logs-btn").click(function() {
$("#clear-logs").show();
LoadPlexPyLogs();
clearSearchButton('log_table', log_table);
});
$("#plex-logs-btn").click(function() {
$("#clear-logs").hide();
LoadPlexLogs();
clearSearchButton('plex_log_table', plex_log_table);
});
$("#clear-logs").click(function() {