From a49547b7a4bef633bb92bee9cf97fdcfe67c76aa Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Thu, 30 Mar 2017 13:31:54 +0200 Subject: [PATCH] even more tutorial in editor (status bar) --- src/editor/modules/rng/mainLayout.html | 2 +- src/editor/modules/rng/rng.js | 2 +- src/fnpjs/layout.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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() { -- 2.20.1