summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Macken <lmacken@redhat.com>2011-12-08 21:29:09 (GMT)
committerLuke Macken <lmacken@redhat.com>2011-12-08 21:29:43 (GMT)
commitc81932410b54fce666ed73b58380932c7226d679 (patch)
tree09ba5143ba866f6b6ab9437a24b1cd2e19973604
parent5f42caa188774cc7f622844adec79cc0cbffeda1 (diff)
downloadfedoracommunity-c81932410b54fce666ed73b58380932c7226d679.zip
fedoracommunity-c81932410b54fce666ed73b58380932c7226d679.tar.gz
fedoracommunity-c81932410b54fce666ed73b58380932c7226d679.tar.xz
Set some CSS classes for our active patch & content
-rw-r--r--fedoracommunity/widgets/package/templates/patches.mak5
1 files changed, 3 insertions, 2 deletions
diff --git a/fedoracommunity/widgets/package/templates/patches.mak b/fedoracommunity/widgets/package/templates/patches.mak
index 3f23bc3..04b56c2 100644
--- a/fedoracommunity/widgets/package/templates/patches.mak
+++ b/fedoracommunity/widgets/package/templates/patches.mak
@@ -24,11 +24,12 @@ function toggle_patch(patch) {
/* If we're already showing the patch, hide it */
if ( tr.next().attr('id') == 'patch' ) {
tr.next().remove();
+ tr.removeClass('active-patch');
return false;
}
- tr.after(
- $('<tr/>', {id: 'patch'}).append(
+ tr.addClass('active-patch').after(
+ $('<tr/>', {id: 'patch'}).addClass('patch-content').append(
$('<td/>', {colspan: 3}).load('/widgets/package.sources.patch',
{package: '${w.package}', patch: patch})));
return false;