diff options
author | plegall <plg@piwigo.org> | 2012-02-10 12:30:15 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2012-02-10 12:30:15 +0000 |
commit | 996cfad0b48699cc0e7b8a18d7cfc684f1060d80 (patch) | |
tree | 52b5549a939a3a01c4cb472e4c930aa8d6174b85 /admin/themes | |
parent | bea45c89b62c779dd56383e82b0fbb9bd76696df (diff) |
feature 2565 added: pending comments screen, highlight selected comments
git-svn-id: http://piwigo.org/svn/trunk@13078 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/themes/clear/theme.css | 2 | ||||
-rw-r--r-- | admin/themes/default/template/comments.tpl | 16 | ||||
-rw-r--r-- | admin/themes/roma/theme.css | 2 |
3 files changed, 20 insertions, 0 deletions
diff --git a/admin/themes/clear/theme.css b/admin/themes/clear/theme.css index 2a8c0a3bc..13a43fe41 100644 --- a/admin/themes/clear/theme.css +++ b/admin/themes/clear/theme.css @@ -280,3 +280,5 @@ UL.thumbnails li.rank-of-image {background-color: #ddd;} #batchManagerGlobal .thumbSelected {background-color:#C2F5C2 !important} #batchManagerGlobal #selectedMessage {background-color:#C2F5C2;} + +.selectedComment {background-color:#C2F5C2;} diff --git a/admin/themes/default/template/comments.tpl b/admin/themes/default/template/comments.tpl index 86d02dc49..4fbfed858 100644 --- a/admin/themes/default/template/comments.tpl +++ b/admin/themes/default/template/comments.tpl @@ -1,19 +1,34 @@ {footer_script}{literal} jQuery(document).ready(function(){ + function highlighComments() { + jQuery(".checkComment").each(function() { + var parent = jQuery(this).parent('tr'); + if (jQuery(this).children("input[type=checkbox]").is(':checked')) { + jQuery(parent).addClass('selectedComment'); + } + else { + jQuery(parent).removeClass('selectedComment'); + } + }); + } + jQuery(".checkComment").click(function(event) { if (event.target.type !== 'checkbox') { var checkbox = jQuery(this).children("input[type=checkbox]"); jQuery(checkbox).attr('checked', !jQuery(checkbox).is(':checked')); + highlighComments(); } }); jQuery("#commentSelectAll").click(function () { jQuery(".checkComment input[type=checkbox]").attr('checked', true); + highlighComments(); return false; }); jQuery("#commentSelectNone").click(function () { jQuery(".checkComment input[type=checkbox]").attr('checked', false); + highlighComments(); return false; }); @@ -21,6 +36,7 @@ jQuery(document).ready(function(){ jQuery(".checkComment input[type=checkbox]").each(function() { jQuery(this).attr('checked', !$(this).is(':checked')); }); + highlighComments(); return false; }); diff --git a/admin/themes/roma/theme.css b/admin/themes/roma/theme.css index 75bfc95e8..1aab8db38 100644 --- a/admin/themes/roma/theme.css +++ b/admin/themes/roma/theme.css @@ -258,3 +258,5 @@ div.token-input-dropdown ul li.token-input-selected-dropdown-item {background-co #albumThumbnail img, #albumLinks { border-color:#333; } + +.selectedComment {background-color:#555; color:#fff;} |