X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/7b4405539ac7c11a11b5259b4f968e1289f0b2a7..969f365b3ee6d3cb54f98b23e1ebb97df9f801dd:/modules/documentToolbar/documentToolbar.js?ds=sidebyside diff --git a/modules/documentToolbar/documentToolbar.js b/modules/documentToolbar/documentToolbar.js index e364e99..a6dd0be 100644 --- a/modules/documentToolbar/documentToolbar.js +++ b/modules/documentToolbar/documentToolbar.js @@ -13,7 +13,7 @@ return function(sandbox) { e.stopPropagation(); var btn = $(e.currentTarget); if(btn.attr('data-btn-type') === 'toggle') { - btn.toggleClass('active') + btn.toggleClass('active'); var event; var btnId = btn.attr('data-btn'); if(btnId === 'grid') @@ -43,7 +43,7 @@ return function(sandbox) { getOption: function(option) { return this.node.find('.rng-module-documentToolbar-toolbarOption[data-option=' + option +']').val(); } - } + }; view.setup(); @@ -51,7 +51,7 @@ return function(sandbox) { start: function() { sandbox.publish('ready'); }, getView: function() { return view.node; }, getOption: function(option) { return view.getOption(option); } - } -} + }; +}; }); \ No newline at end of file