X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/1aba836313d1513bbe0ca947e01176806c900233..73894afa5c6ed0829890f129def7e85540e3366c:/modules/tabsManager.js?ds=sidebyside 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)); });