From: Jan Szejko Date: Fri, 24 Mar 2017 10:13:16 +0000 (+0100) Subject: tutorial button X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/01949e093709031e945a469aa30d983666c0ce59?hp=65750ae07c7891ea23adcddc3204d9a8c8fa0e9e tutorial button --- diff --git a/apps/wiki/templates/wiki/bootstrap.html b/apps/wiki/templates/wiki/bootstrap.html index cdbb4266..775167ef 100644 --- a/apps/wiki/templates/wiki/bootstrap.html +++ b/apps/wiki/templates/wiki/bootstrap.html @@ -190,10 +190,10 @@ {name: 'preview', text: 's'}, {name: 'attachments', text: 's'}, {name: 'draft', text: 's'}, - {name: 'comment', text: 's'}, // needs to be set manually in comments.html :( - {name: 'save', text: 's'}, + {name: 'comment', text: 's'}, + {name: 'save', text: 'Sztuczna gadatliwość pijanych konstabli cieszy rumieńcem stareńkich notabli'}, {name: 'mainpage', text: 's'}, - {name: 'exit', text: 's'} + {name: 'exit', text: 'Sztuczna gadatliwość pijanych konstabli cieszy rumieńcem stareńkich notabli'} ] }; @@ -224,10 +224,8 @@ Editor.start(config); }; - - - +
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); });