X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8236368dcf8d49214946e291300e29622fd26aaf..dc572f022673aa80b64126371675a710b58e953d:/wolnelektury/static/js/catalogue.js diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index a76215aa5..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'); @@ -347,9 +348,18 @@ function serverTime() { target.html('
'+LOCALE_TEXTS[LANGUAGE_CODE]['DELETE_SHELF']+'
'); hash.w.css({position: 'absolute', left: offset.left, top: offset.top}).show() }, onLoad: function(hash) { + try { + $('#createShelfTrigger').click(function(){ + $('#createNewShelf').show(); + }); + } catch (e){} + $('form', hash.w).ajaxForm({ target: target, - success: function() { setTimeout(function() { $('#set-window').jqmHide() }, 1000) } + success: function() { + setTimeout(function() { + $('#set-window').jqmHide(); + }, 1000)} }); } });