X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/735368cfb54c8954518179993dcd3bc55e3878e7..2449a6f0ef0308efa36bf8103f988b2ecf6c508d:/wolnelektury/static/js/catalogue.js?ds=inline diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index d57f74339..b37c57734 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -286,7 +286,18 @@ function serverTime() { $('p', this).html(LOCALE_TEXTS[LANGUAGE_CODE]['HIDE_DESCRIPTION'] + ' ▼'); } }); - + + $('#toggle-share-shelf').hover( + function() { $(this).css({background: '#F3F3F3', cursor: 'pointer'}); }, + function() { $(this).css({background: '#EEE'}); } + ).click(function() { + if ($('#share-shelf').hasClass('hidden')) { + $('#share-shelf').slideDown('fast').removeClass('hidden'); + } else { + $('#share-shelf').slideUp('fast').addClass('hidden'); + } + }); + var target = $('#set-window div.target'); $('#set-window').jqm({ @@ -318,6 +329,9 @@ function serverTime() { $('#description').hide().addClass('hidden'); $('#toggle-description p').html(LOCALE_TEXTS[LANGUAGE_CODE]['EXPAND_SHELF']+' ▼'); } + + $('#share-shelf').hide().addClass('hidden'); + $('#share-shelf input').focus(function(){this.select();}); $('#user-info').show(); changeBannerText();