X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/65750ae07c7891ea23adcddc3204d9a8c8fa0e9e..2c85a46e149380dccf5a69694402bd2519e80203:/redakcja/static/js/catalogue/catalogue.js diff --git a/redakcja/static/js/catalogue/catalogue.js b/redakcja/static/js/catalogue/catalogue.js index 33764a71..fa3f5f2b 100755 --- a/redakcja/static/js/catalogue/catalogue.js +++ b/redakcja/static/js/catalogue/catalogue.js @@ -122,12 +122,11 @@ } $('#tutModal').on('hidden.bs.modal', tut); - var $tuton = $("#tuton"); - if (sessionStorage.getItem("tutorial") == "on" && $tuton.length == 0) { + if (sessionStorage.getItem("tutorial") == "on" && $('#tuton').length == 0) { tutreset(); tut(); } - $tuton.on('click', tuton); + $(document).on('click', '#tuton', tuton); $(document).on('click', '.tutorial-off', tutoff); $(document).on('click', '.tutorial-next', tut); });