X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/b673187ef27821aef4972223e465b6e09a495e77..a49547b7a4bef633bb92bee9cf97fdcfe67c76aa:/src/editor/modules/documentToolbar/actionView.js diff --git a/src/editor/modules/documentToolbar/actionView.js b/src/editor/modules/documentToolbar/actionView.js index 5439045..8ac81b9 100644 --- a/src/editor/modules/documentToolbar/actionView.js +++ b/src/editor/modules/documentToolbar/actionView.js @@ -38,7 +38,7 @@ var ActionView = Backbone.View.extend({ this.action.on('paramsChanged', function() { this.render(); }, this); - this.setElement(viewTemplate()); + this.setElement(viewTemplate({tutorial: this.options.tutorial})); }, render: function() { /* globals document */ @@ -126,8 +126,8 @@ var ActionView = Backbone.View.extend({ } }); -var create = function(action) { - var view = new ActionView({action:action}); +var create = function(action, tutorial) { + var view = new ActionView({action: action, tutorial: tutorial}); view.render(); return {