X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0dedb252acdced77dc403ff4acdbb42734eb991f..7f95f426fe9d582ee5b33e73edc7ef7c78a82c12:/apps/wolnelektury_core/static/js/book_text/box.js diff --git a/apps/wolnelektury_core/static/js/book_text/box.js b/apps/wolnelektury_core/static/js/book_text/box.js deleted file mode 100644 index e26762c2d..000000000 --- a/apps/wolnelektury_core/static/js/book_text/box.js +++ /dev/null @@ -1,19 +0,0 @@ -$(function() { - /* Toggle hidden box on click. */ - $("nav a[data-box]").each(function() { - $("#" + $(this).attr("data-box")).hide(); - - $(this).click(function(e) { - e.preventDefault(); - var showing = $(this).hasClass("active"); - $("nav .active").each(function() { - $(this).removeClass("active"); - $("#" + $(this).attr("data-box")).hide(); - }); - if (!showing) { - $(this).addClass("active"); - $("#" + $(this).attr("data-box")).show(); - } - }); - }); -});