better support for mailchimp emails
[roojs1] / Roo / bootstrap / Navbar.Item.js
index 2650e6a..3689bdf 100644 (file)
  * - LGPL
  *
  * row
- * 
  */ 
-Roo.bootstrap.Navbar.Item = function(config){
-    Roo.bootstrap.Navbar.Item.superclass.constructor.call(this, config);
-};
-
-Roo.extend(Roo.bootstrap.Navbar.Item, Roo.bootstrap.Component,  {
-    
-    href: false,
-    html: '',
-    badge: '',
-    icon: false,
-    glyphicon: false,
-    
-    getAutoCreate : function(){
-        
-        var cfg = Roo.apply({}, Roo.bootstrap.Navbar.Item.superclass.getAutoCreate.call(this));
-       
-       if (this.parent().parent().sidebar === true) {
-           cfg = {
-               tag: 'li',
-               cls: '',
-               cn: [
-                   {
-                       tag: 'p',
-                       cls: ''
-                   }
-               ]
-           }
-           
-           if (this.active) {
-               this.cls += ' active'
-           }
-           
-           if (this.menu) {
-               cfg.cn[0].cls += ' dropdown-toggle';
-           }
-           
-           if (this.href) {
-               cfg.cn[0].tag = 'a',
-               cfg.cn[0].href = this.href;
-           }
-           
-           if (this.html) {
-               cfg.cn[0].html = this.html;
-           }
-           
-           if (this.glyphicon) {
-               cfg.cn[0].html = '<i class="glyphicon glyphicon-'+this.glyphicon+'"></i><span>' + cfg.cn[0].html || this.html + '</span>'
-           }
-           
-           return cfg;
-       }
-       
-       cfg = {
-           tag: 'li'
-       }
-       cfg.cn = [
-            {
-               tag: 'p',
-               html: 'Text'
-            }
-        ];
-        
-        if (this.glyphicon) {
-            if(cfg.html){cfg.html = ' ' + this.html};
-            cfg.cn=[
-                {
-                    tag: 'span',
-                    cls: 'glyphicon glyphicon-' + this.glyphicon
-                }
-            ];
-        }
-       
-        cfg.cn[0].html = this.html || cfg.cn[0].html ;
-       if (this.menu) {
-           cfg.cn[0].tag='a';
-           cfg.cn[0].href='#';
-           cfg.cn[0].html += " <span class='caret'></span>";
-       //}else if (!this.href) {
-       //    cfg.cn[0].tag='p';
-       //    cfg.cn[0].cls='navbar-text';
-       } else {
-           cfg.cn[0].tag='a';
-           cfg.cn[0].href=this.href||'#';
-           cfg.cn[0].html=this.html;
-       }
-       
-       if (this.badge !== '') {
-           
-           cfg.cn[0].cn=[
-               cfg.cn[0].html + ' ',
-               {
-                   tag: 'span',
-                   cls: 'badge',
-                   html: this.badge
-               }
-           ];
-           cfg.cn[0].html=''
-       }
-        
-       
-        return cfg;
-    },
-    initEvents: function() {
-       // Roo.log('init events?');
-       // Roo.log(this.el.dom);
-        this.el.select('a',true).on('click',
-                function(e) {
-                    this.fireEvent('click', this);
-                },
-                this
-        );
-    }
-   
-});
-
+ // moved to Navbar/Item.js
  
 
  
\ No newline at end of file