minor style fix
[wolnelektury.git] / apps / wolnelektury_core / static / js / book_text / other.js
1 (function($){$(function(){
2
3
4 $("#menu-other").show();
5
6
7 $(".display-other").click(function(e) {
8     e.preventDefault();
9
10     if ($('#big-pane').length == 0)
11         $("#other-text").show();
12     $("#other-versions").slideUp('fast');
13     $(".menu").removeClass('selected');
14
15     $("#other").hide();
16     $("nav .active").removeClass('active');
17     $("body").addClass('with-other-text');
18
19     $.ajax($(this).attr('data-other'), {
20         success: function(text) {
21             $("#other-text-body").html(text);
22             $("#other-text-waiter").hide();
23             $("#other-text-body").show();
24         }
25     });
26 });
27
28
29 $("#other-text-close").click(function(e) {
30     e.preventDefault();
31     if ($('#big-pane').length == 0)
32         $("#other-text").hide();
33     $("body").removeClass('with-other-text');
34 });
35
36 })})(jQuery);