X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0ca7242564aa1a2bdc1ab6891d46cae7d44dd889..3c4f1543aaf955e96a526b4fe13688645e14e720:/views/tabs/tabs.js diff --git a/views/tabs/tabs.js b/views/tabs/tabs.js index 7c94938..7298d4e 100644 --- a/views/tabs/tabs.js +++ b/views/tabs/tabs.js @@ -60,6 +60,9 @@ define([ if(this.selectedTab) this.contents[this.selectedTab].detach(); this.nodes.content.append(this.contents[slug]); + if(this.contents[slug].onShow) { + this.contents[slug].onShow(); + } this.nodes.tabBar.find('.active').removeClass('active'); this.nodes.tabBar.find('a[href="#'+slug+'"]').parent().addClass('active');