From 9e81b1b5ad1a11035710f32ab2af4f57b471d206 Mon Sep 17 00:00:00 2001 From: Lukasz Anwajler Date: Wed, 22 Sep 2010 14:00:14 -0500 Subject: [PATCH 1/1] Book tree - UI fix. --- wolnelektury/static/css/master.css | 7 +++++-- wolnelektury/static/js/catalogue.js | 6 ++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/wolnelektury/static/css/master.css b/wolnelektury/static/css/master.css index 263a4face..adc1708c1 100644 --- a/wolnelektury/static/css/master.css +++ b/wolnelektury/static/css/master.css @@ -784,11 +784,14 @@ div.shown-tags p, div.all-tags p { /* ======================== */ /* = Alphabetic book list = */ /* ======================== */ +#book-list { + padding-left: 50px; +} #book-list-nav { position: absolute; right: 50px; width: 200px; - border: 2px #325F70 solid; + border-left: 1px #cfcfcf solid; padding: 10px; font-size: 1.2em; } @@ -820,7 +823,7 @@ div.shown-tags p, div.all-tags p { position: fixed; bottom: 50px; right: 50px; - border: 2px #325F70 solid; + border-left: 1px #cfcfcf solid; padding: 10px; background-color: white; } diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index 9679607e5..7177c4c39 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -447,7 +447,7 @@ function serverTime() { return false; }); - $('.sponsors').cycle({timeout: 3000}); + //$('.sponsors').cycle({timeout: 3000}); $('.widget-code').focus( function(){ @@ -469,7 +469,9 @@ function serverTime() { $('.book-list-index').click(function(){ $('.book-list-show-index').hide('slow'); - $(this).parent().next('ul').toggle('slow'); + if($(this).parent().next('ul:not(:hidden)').length == 0){ + $(this).parent().next('ul').toggle('slow'); + } return false; }); -- 2.20.1