diff --git a/data/interfaces/default/history.html b/data/interfaces/default/history.html index 2fdf5238..5bdd5c7d 100644 --- a/data/interfaces/default/history.html +++ b/data/interfaces/default/history.html @@ -32,7 +32,7 @@ Paused Stopped Duration - Watched + @@ -63,7 +63,7 @@ } } history_table = $('#history_table').DataTable(history_table_options); - var colvis = new $.fn.dataTable.ColVis(history_table, { buttonText: ' Select columns', buttonClass: 'btn btn-dark' }); + var colvis = new $.fn.dataTable.ColVis(history_table, { buttonText: ' Select columns', buttonClass: 'btn btn-dark', exclude: [0, 10] }); $(colvis.button()).appendTo('div.colvis-button-bar'); $('#row-edit-mode').click(function() { diff --git a/data/interfaces/default/info.html b/data/interfaces/default/info.html index bb4d4ca0..0cc8aba5 100644 --- a/data/interfaces/default/info.html +++ b/data/interfaces/default/info.html @@ -173,6 +173,7 @@ DOCUMENTATION :: END + @@ -182,7 +183,7 @@ DOCUMENTATION :: END - + @@ -254,9 +255,8 @@ DOCUMENTATION :: END } } history_table = $('#history_table').DataTable(history_table_options); - history_table.column(4).visible(false); - var colvis = new $.fn.dataTable.ColVis(history_table, { buttonText: ' Select columns', buttonClass: 'btn btn-dark' }); + var colvis = new $.fn.dataTable.ColVis(history_table, { buttonText: ' Select columns', buttonClass: 'btn btn-dark', exclude: [0, 10] }); $(colvis.button()).appendTo('div.colvis-button-bar'); }); @@ -274,7 +274,7 @@ DOCUMENTATION :: END } } history_table = $('#history_table').DataTable(history_table_options); - var colvis = new $.fn.dataTable.ColVis(history_table, { buttonText: ' Select columns', buttonClass: 'btn btn-dark' }); + var colvis = new $.fn.dataTable.ColVis(history_table, { buttonText: ' Select columns', buttonClass: 'btn btn-dark', exclude: [0, 10] }); $(colvis.button()).appendTo('div.colvis-button-bar'); }); diff --git a/data/interfaces/default/user.html b/data/interfaces/default/user.html index 2f238218..81364449 100644 --- a/data/interfaces/default/user.html +++ b/data/interfaces/default/user.html @@ -156,13 +156,17 @@ from plexpy import helpers ${data['friendly_name']} -
Delete Time User PlatformPaused Stopped DurationWatched
+ @@ -172,7 +176,7 @@ from plexpy import helpers - + @@ -289,9 +293,9 @@ from plexpy import helpers } } history_table = $('#history_table').DataTable(history_table_options); - history_table.column(1).visible(false); + history_table.column(2).visible(false); - var colvis = new $.fn.dataTable.ColVis(history_table, { buttonText: ' Select columns', buttonClass: 'btn btn-dark' }); + var colvis = new $.fn.dataTable.ColVis(history_table, { buttonText: ' Select columns', buttonClass: 'btn btn-dark', exclude: [0, 10] }); $(colvis.button()).appendTo('#button-bar-history'); }); @@ -339,6 +343,19 @@ from plexpy import helpers } }); }); + + // Delete mode button + $('#row-edit-mode').click(function() { + if ($(this).hasClass('active')) { + $('.delete-control').each(function() { + $(this).addClass('hidden'); + }); + } else { + $('.delete-control').each(function() { + $(this).removeClass('hidden'); + }); + } + }); });
Delete Time User PlatformPaused Stopped DurationWatched