From e94c00ca487713da1fe00d507419fe5a12d9c1f6 Mon Sep 17 00:00:00 2001 From: Jonathan Wong Date: Sat, 22 Aug 2015 01:17:58 -0700 Subject: [PATCH] Fix history table on info pages --- data/interfaces/default/info.html | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/data/interfaces/default/info.html b/data/interfaces/default/info.html index a1c313b2..b2ba2b98 100644 --- a/data/interfaces/default/info.html +++ b/data/interfaces/default/info.html @@ -174,7 +174,9 @@ DOCUMENTATION :: END
Watch History for ${data['title']}
-
@@ -184,8 +186,8 @@ DOCUMENTATION :: END Delete Time User - Platform IP Address + Platform Title Started Paused @@ -236,7 +238,6 @@ DOCUMENTATION :: END <%def name="javascriptIncludes()"> - @@ -269,6 +270,18 @@ DOCUMENTATION :: END $(colvis.button()).appendTo('div.colvis-button-bar'); clearSearchButton('history_table', history_table); + + $('#row-edit-mode').click(function() { + if ($(this).hasClass('active')) { + $('.delete-control').each(function() { + $(this).addClass('hidden'); + }); + } else { + $('.delete-control').each(function() { + $(this).removeClass('hidden'); + }); + } + }); }); % elif data['type'] == 'show': @@ -289,6 +302,18 @@ DOCUMENTATION :: END $(colvis.button()).appendTo('div.colvis-button-bar'); clearSearchButton('history_table', history_table); + + $('#row-edit-mode').click(function() { + if ($(this).hasClass('active')) { + $('.delete-control').each(function() { + $(this).addClass('hidden'); + }); + } else { + $('.delete-control').each(function() { + $(this).removeClass('hidden'); + }); + } + }); }); % endif