From: Jan Szejko Date: Thu, 30 Mar 2017 11:31:54 +0000 (+0200) Subject: even more tutorial in editor (status bar) X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/a49547b7a4bef633bb92bee9cf97fdcfe67c76aa?ds=sidebyside even more tutorial in editor (status bar) --- diff --git a/src/editor/modules/rng/mainLayout.html b/src/editor/modules/rng/mainLayout.html index 825ae38..461c2a3 100644 --- a/src/editor/modules/rng/mainLayout.html +++ b/src/editor/modules/rng/mainLayout.html @@ -5,5 +5,5 @@
-
+
data-toggle="tutorial" data-tutorial="<%= tutorial.index %>" data-placement="top" data-content="<%= tutorial.text %>"<% } %>>
\ No newline at end of file diff --git a/src/editor/modules/rng/rng.js b/src/editor/modules/rng/rng.js index fc4afb0..f933ec1 100644 --- a/src/editor/modules/rng/rng.js +++ b/src/editor/modules/rng/rng.js @@ -30,7 +30,7 @@ return function(sandbox) { var views = { - mainLayout: new layout.Layout(mainLayoutTemplate), + mainLayout: new layout.Layout(mainLayoutTemplate, sandbox.getTutorialItem('statusBar')), mainTabs: (new tabs.View()).render(), visualEditing: new layout.Layout(visualEditingLayoutTemplate), diffLayout: new layout.Layout(diffLayoutTemplate) diff --git a/src/fnpjs/layout.js b/src/fnpjs/layout.js index 68d4738..715d2d2 100644 --- a/src/fnpjs/layout.js +++ b/src/fnpjs/layout.js @@ -1,9 +1,9 @@ define(['libs/jquery', 'libs/underscore'], function($ ,_) { 'use strict'; - var Layout = function(template) { + var Layout = function(template, tutorial) { var layout = this; - this.dom = $(_.template(template)()); + this.dom = $(_.template(template)({tutorial: tutorial})); this.views = {}; this.dom.onShow = function() {