X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/63d73e2cd779b7773bfceb2ffdb9630e42175e6a..b3b6cbc7a545af2f3fa6f04f9281fd994b2adea7:/wolnelektury/static/js/catalogue.js?ds=sidebyside diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index b185c29eb..1eede5c90 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -42,10 +42,10 @@ var LOCALE_TEXTS = { "LOADING": "Krovimas" }, "uk":{ - "DELETE_SHELF": "Translate me!", - "HIDE_DESCRIPTION": "Translate me!", - "EXPAND_DESCRIPTION": "Translate me!", - "LOADING": "Translate me!" + "DELETE_SHELF": "Ви впевнені, що хочете видалити полицю?", + "HIDE_DESCRIPTION": "Сховати опис", + "EXPAND_DESCRIPTION": "Показати опис", + "LOADING": "Завантажується" } } var BANNER_TEXTS = [ @@ -447,6 +447,33 @@ function serverTime() { return false; }); - $('marquee').marquee() + $('.sponsors').cycle({timeout: 3000}); + + $('.widget-code').focus( + function(){ + $(this).animate({rows: '11'}, 100, function(){ + this.select(); + $(this).click(function(){ + this.select(); + }); + }) + + } + ).blur( + function(){ + $(this).animate({rows: '1'}, 300, function(){ + $(this).unbind('click'); + }) + } + ); + + $('.book-list-index').click(function(){ + $('.book-list-show-index').hide('slow'); + if($(this).parent().next('ul:not(:hidden)').length == 0){ + $(this).parent().next('ul').toggle('slow'); + } + return false; + }); + }); })(jQuery)