X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/1aba836313d1513bbe0ca947e01176806c900233..9201c5810622e27a19de7e331046108d7110c46b:/modules/tabsManager.js?ds=inline diff --git a/modules/tabsManager.js b/modules/tabsManager.js index 4103887..4ede9a0 100644 --- a/modules/tabsManager.js +++ b/modules/tabsManager.js @@ -26,10 +26,11 @@ rng.modules.tabsManager = function(sandbox) { tabContent[prevSlug].detach(); tabContent[slug].appendTo(view.find('#rng-tabsManager-content')); currentSlug = slug; + sandbox.publish('showed', slug); } - view.on('click', 'li a', function(e) { + view.on('click', '#rng-tabsManager-tabBar li a', function(e) { selectTab($(e.target).attr('href').substr(1)); });