X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/39305f915559082f17b7a5b8fd7521ee05181fec..4e0553edaf87974f2e9565fcb0514b928cb48d8e:/modules/tabsManager.js?ds=inline diff --git a/modules/tabsManager.js b/modules/tabsManager.js index 1f0ac18..a204858 100644 --- a/modules/tabsManager.js +++ b/modules/tabsManager.js @@ -1,4 +1,6 @@ -rng.modules.tabsManager = function(sandbox) { +define(function() { + +return function(sandbox) { var $ = sandbox.$; @@ -26,6 +28,7 @@ rng.modules.tabsManager = function(sandbox) { tabContent[prevSlug].detach(); tabContent[slug].appendTo(view.find('#rng-tabsManager-content')); currentSlug = slug; + sandbox.publish('showed', slug); } @@ -53,4 +56,6 @@ rng.modules.tabsManager = function(sandbox) { } } -}; \ No newline at end of file +}; + +}); \ No newline at end of file