From 4a4c7cd36d9f6899b37b6d749d4af626cf133e21 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 19 Jun 2013 14:55:30 +0200 Subject: [PATCH] fixes #2581: Hide themes from menu if no themes. --- apps/wolnelektury_core/static/js/book.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/wolnelektury_core/static/js/book.js b/apps/wolnelektury_core/static/js/book.js index 335fe39c0..72d8174fc 100644 --- a/apps/wolnelektury_core/static/js/book.js +++ b/apps/wolnelektury_core/static/js/book.js @@ -19,6 +19,9 @@ $(function() { if ($('#toc li').length == 0) { $('#menu li a[href="#toc"]').remove(); } + if ($('#themes li').length == 0) { + $('#menu li a[href="#themes"]').remove(); + } if ($('#nota_red').length == 0) { $('#menu li a[href="#nota_red"]').remove(); } -- 2.20.1