X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/dfd4d9908772828d7a88904d6ca82c550bf4cce6..64070cbb6224362b6bd5de6b2dfe67f80202272b:/wolnelektury/static/js/catalogue.js?ds=sidebyside diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index dc7297f61..9fd03d34b 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -30,10 +30,10 @@ var LOCALE_TEXTS = { "LOADING": "Загрузка" }, "es": { - "DELETE_SHELF": "Translate me!", - "HIDE_DESCRIPTION": "Translate me!", - "EXPAND_DESCRIPTION": "Translate me!", - "LOADING": "Translate me!" + "DELETE_SHELF": "¿Estás seguro que quieres borrar este estante?", + "HIDE_DESCRIPTION": "Esconder la descripción", + "EXPAND_DESCRIPTION": "Ampliar la descripción", + "LOADING": "Cargando" }, "lt":{ "DELETE_SHELF": "Ar tikrai nori pašalinti lentną?", @@ -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 = [ @@ -446,5 +446,34 @@ function serverTime() { $('#download-shelf-menu').slideUp('fast'); return false; }); + + $('.sponsor-logos').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)