From 01949e093709031e945a469aa30d983666c0ce59 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Fri, 24 Mar 2017 11:13:16 +0100 Subject: [PATCH] tutorial button --- apps/wiki/templates/wiki/bootstrap.html | 10 ++++------ redakcja/static/js/catalogue/catalogue.js | 5 ++--- 2 files changed, 6 insertions(+), 9 deletions(-) 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); }); -- 2.20.1