X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/8a96e73cb2bfaf1bb973281e1c3033f3ecc5309f..24e1f42110e9836448816a3297c3fb291dda5cea:/src/editor/modules/documentCanvas/canvas/gutter.js diff --git a/src/editor/modules/documentCanvas/canvas/gutter.js b/src/editor/modules/documentCanvas/canvas/gutter.js index 472998a..73a46e0 100644 --- a/src/editor/modules/documentCanvas/canvas/gutter.js +++ b/src/editor/modules/documentCanvas/canvas/gutter.js @@ -8,7 +8,7 @@ var $ = require('libs/jquery'), gutterBoxTemplate = require('libs/text!./gutterBox.html'); -var GutterView = function(gutter) { +var GutterView = function(gutter, tutorial) { gutter.on('show', function(group) { if(this.groupView) { this.groupView.remove(); @@ -19,6 +19,9 @@ var GutterView = function(gutter) { this.groupView.show(); }, this); this.dom = $('
'); + var tutorialHolder = $('').attr('data-toggle', 'tutorial').attr('data-tutorial', tutorial.index) + .attr('data-placement', 'bottom').attr('data-content', tutorial.text); + this.dom.append(tutorialHolder); };