From f358d7768f7f0c73358b712e0e37c100843091d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Thu, 25 Sep 2008 14:11:55 +0200 Subject: [PATCH] Added button to fold unfolded category list on main page. --- wolnelektury/media/css/master.css | 4 ++-- wolnelektury/media/js/catalogue.js | 7 +++++++ wolnelektury/templates/catalogue/folded_tag_list.html | 3 ++- wolnelektury/templates/catalogue/main_page.html | 1 + 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/wolnelektury/media/css/master.css b/wolnelektury/media/css/master.css index 59588a864..7dc433b9c 100644 --- a/wolnelektury/media/css/master.css +++ b/wolnelektury/media/css/master.css @@ -242,12 +242,12 @@ p .ac_input { display: none; } -div.shown-tags p { +div.shown-tags p, div.all-tags p { margin: -1em 0 1em 0; text-align: right; } -.show-all-tags { +.show-all-tags, .hide-all-tags { text-decoration: underline; padding-right: 1em; } diff --git a/wolnelektury/media/js/catalogue.js b/wolnelektury/media/js/catalogue.js index 87aee5dad..f86788be7 100644 --- a/wolnelektury/media/js/catalogue.js +++ b/wolnelektury/media/js/catalogue.js @@ -42,6 +42,13 @@ return false; }); + $('.hide-all-tags').click(function() { + $(this).parent().parent().fadeOut(function() { + $(this).prev().fadeIn(); + }); + return false; + }); + $('#registration-form').ajaxForm({ dataType: 'json', beforeSubmit: function() { diff --git a/wolnelektury/templates/catalogue/folded_tag_list.html b/wolnelektury/templates/catalogue/folded_tag_list.html index e66c1097d..62896fc05 100644 --- a/wolnelektury/templates/catalogue/folded_tag_list.html +++ b/wolnelektury/templates/catalogue/folded_tag_list.html @@ -16,7 +16,8 @@ +

Zwiń

{% endif %} diff --git a/wolnelektury/templates/catalogue/main_page.html b/wolnelektury/templates/catalogue/main_page.html index 1c4e1e96f..107d27d39 100644 --- a/wolnelektury/templates/catalogue/main_page.html +++ b/wolnelektury/templates/catalogue/main_page.html @@ -236,6 +236,7 @@
  • żywioły Å»ywioły, Ogień, Ziemia, Wiatr, Woda, Przestrzeń
  • +

    Zwiń

    -- 2.20.1