roojs-core.js
[roojs1] / Roo / doc / NavCategory.js
index 5ab8e12..bf041bf 100644 (file)
@@ -25,8 +25,9 @@
 
 Roo.doc.NavCategory = function(config){
     Roo.doc.Para.superclass.constructor.call(this, config);
+    Roo.doc.NavCategory.registry[this.name] = this;
 };
-
+Roo.doc.NavCategory.registry = {};
 Roo.extend(Roo.doc.NavCategory, Roo.bootstrap.Component,  {
     
     title : '',
@@ -40,8 +41,10 @@ Roo.extend(Roo.doc.NavCategory, Roo.bootstrap.Component,  {
         var cfg ={
             
             cn : [
+                
                 {
                     tag : 'a',
+                    cls: 'roo-nav-category',
                     href : '#' + this.name,
                     html : this.title
                 },
@@ -55,7 +58,7 @@ Roo.extend(Roo.doc.NavCategory, Roo.bootstrap.Component,  {
     },
     getChildContainer : function()
     {
-        return this.el.select('roo-child-ctr').first();
+        return this.el.select('.roo-child-ctr',true).first();
     }