From: Marek Stępniowski Date: Thu, 25 Sep 2008 12:11:55 +0000 (+0200) Subject: Added button to fold unfolded category list on main page. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/f358d7768f7f0c73358b712e0e37c100843091d4?ds=inline;hp=-c Added button to fold unfolded category list on main page. --- f358d7768f7f0c73358b712e0e37c100843091d4 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ń