diffViewer: selecting tab with the latest requested diff
[fnpeditor.git] / views / tabs / tabs.js
index f533785..43df1c1 100644 (file)
@@ -31,6 +31,10 @@ define([
             if(this.options.stacked) {\r
                 this.nodes.tabBar.addClass('nav-stacked nav-pills').removeClass('nav-tabs');\r
             }\r
             if(this.options.stacked) {\r
                 this.nodes.tabBar.addClass('nav-stacked nav-pills').removeClass('nav-tabs');\r
             }\r
+            if(this.options.position === 'right') {\r
+                this.$el.addClass('tabs-right');\r
+                this.nodes.content.addClass('tab-content');\r
+            }\r
             return this;\r
         },\r
         \r
             return this;\r
         },\r
         \r
@@ -67,6 +71,10 @@ define([
             return this.$el;\r
         },\r
         \r
             return this.$el;\r
         },\r
         \r
+        getCurrentSlug: function() {\r
+            return this.selectedTab;\r
+        },\r
+        \r
         /* Events */\r
         \r
         _onTabTitleClicked: function(e) {\r
         /* Events */\r
         \r
         _onTabTitleClicked: function(e) {\r