X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/7ec46d1d02586149eda8898f38dc2a38ebd2e89f..dc572f022673aa80b64126371675a710b58e953d:/wolnelektury/static/js/catalogue.js diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index c038e2421..3aad7b40d 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -107,6 +107,7 @@ function serverTime() { (function($) { $(function() { + $('form input').labelify({labelledClass: 'blur'}); target = $('#login-register-window div.target'); @@ -316,12 +317,10 @@ function serverTime() { function() { $(this).css({background: '#EEE'}); } ).click(function() { if ($('#description').hasClass('hidden')) { - $('#description').slideDown('fast').removeClass('hidden'); - $.cookie('description-state', 'opened', {path: '/', expires: 30}); + $('#description').animate({"height": $('#description').attr("box_h")+'px'}, {duration: "fast" }).removeClass('hidden'); $('p', this).html(LOCALE_TEXTS[LANGUAGE_CODE]['HIDE_DESCRIPTION'] + ' â²'); } else { - $('#description').slideUp('fast').addClass('hidden'); - $.cookie('description-state', 'closed', {path: '/', expires: 30}); + $('#description').animate({"height": '4em'}, {duration: "fast" }).addClass('hidden'); $('p', this).html(LOCALE_TEXTS[LANGUAGE_CODE]['EXPAND_DESCRIPTION'] + ' â¼'); } }); @@ -349,9 +348,18 @@ function serverTime() { target.html('
'+LOCALE_TEXTS[LANGUAGE_CODE]['DELETE_SHELF']+'