documentCanvas: Fixing missing carret on initially selected ndoe
[fnpeditor.git] / views / tabs / tabs.js
index 7c94938..7298d4e 100644 (file)
@@ -60,6 +60,9 @@ define([
                 if(this.selectedTab)\r
                     this.contents[this.selectedTab].detach();\r
                 this.nodes.content.append(this.contents[slug]);\r
+                if(this.contents[slug].onShow) {\r
+                    this.contents[slug].onShow();\r
+                }\r
                 this.nodes.tabBar.find('.active').removeClass('active');\r
                 this.nodes.tabBar.find('a[href="#'+slug+'"]').parent().addClass('active');\r
                 \r