X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/84eba72af147a175fb93b7305c1d42b0a4987a8c..4a10da821d96b8e462cc9db5e74e2507445eee76:/modules/documentHistory/documentHistory.js diff --git a/modules/documentHistory/documentHistory.js b/modules/documentHistory/documentHistory.js index d435617..2647ee3 100644 --- a/modules/documentHistory/documentHistory.js +++ b/modules/documentHistory/documentHistory.js @@ -13,7 +13,7 @@ return function(sandbox) { var dom = $(_.template(mainTemplateSrc)()); var domNodes = { itemList: dom.find('.rng-module-documentHistory-itemsList'), - } + }; var itemViews = []; @@ -43,18 +43,18 @@ return function(sandbox) { if(options.animate) { view.dom.hide().slideDown(); } - } + }; var toggleItemViews = function(toggle) { itemViews.forEach(function(view) { if(!historyItems.isSelected(view.item)) view.toggle(toggle); }); - } + }; var toggleButton = function(btn, toggle) { dom.find('button.'+btn).toggleClass('disabled', !toggle); - } + }; var historyItems = { _itemsById: {}, @@ -140,7 +140,7 @@ return function(sandbox) { getView: function() { return dom; } - } -} + }; +}; }); \ No newline at end of file