Visual editor - new node shortcuts in the toolbar
[fnpeditor.git] / modules / tabsManager.js
index 4103887..4ede9a0 100644 (file)
@@ -26,10 +26,11 @@ rng.modules.tabsManager = function(sandbox) {
             tabContent[prevSlug].detach();\r
         tabContent[slug].appendTo(view.find('#rng-tabsManager-content'));\r
         currentSlug = slug;\r
             tabContent[prevSlug].detach();\r
         tabContent[slug].appendTo(view.find('#rng-tabsManager-content'));\r
         currentSlug = slug;\r
+        sandbox.publish('showed', slug);\r
     }\r
        \r
     \r
     }\r
        \r
     \r
-    view.on('click', 'li a', function(e) {\r
+    view.on('click', '#rng-tabsManager-tabBar li a', function(e) {\r
         selectTab($(e.target).attr('href').substr(1));\r
     });\r
     \r
         selectTab($(e.target).attr('href').substr(1));\r
     });\r
     \r