tabBar.find('li').removeClass('active');\r
tabBar.find('a[href=#' + slug + ']').parent().addClass('active');\r
\r
if(prevSlug)\r
tabContent[prevSlug].detach();\r
tabContent[slug].appendTo(view.find('#rng-tabsManager-content'));\r
tabBar.find('li').removeClass('active');\r
tabBar.find('a[href=#' + slug + ']').parent().addClass('active');\r
\r
if(prevSlug)\r
tabContent[prevSlug].detach();\r
tabContent[slug].appendTo(view.find('#rng-tabsManager-content'));\r
view.find('#rng-tabsManager-tabBar').append(sandbox.getTemplate('tabHandle')({title: title, slug: slug}));\r
if(_.values(tabContent).length === 1)\r
selectTab(slug);\r
view.find('#rng-tabsManager-tabBar').append(sandbox.getTemplate('tabHandle')({title: title, slug: slug}));\r
if(_.values(tabContent).length === 1)\r
selectTab(slug);\r