var $ = sandbox.$;\r
\r
var view = $(sandbox.getTemplate('main')());\r
- \r
+ var currentSlug;\r
var tabContent = {};\r
\r
function selectTab(slug) {\r
if(prevSlug)\r
tabContent[prevSlug].detach();\r
tabContent[slug].appendTo(view.find('#rng-tabsManager-content'));\r
+ currentSlug = slug;\r
}\r
\r
\r
view.find('#rng-tabsManager-tabBar').append(sandbox.getTemplate('tabHandle')({title: title, slug: slug}));\r
if(_.values(tabContent).length === 1)\r
selectTab(slug);\r
+ },\r
+ getCurrentSlug: function() {\r
+ return currentSlug;\r
}\r
}\r
\r