Roo/bootstrap/MessageBar.js
authorEdward <edward@roojs.com>
Wed, 4 Jun 2014 06:40:59 +0000 (14:40 +0800)
committerEdward <edward@roojs.com>
Wed, 4 Jun 2014 06:40:59 +0000 (14:40 +0800)
roojs-bootstrap.js
roojs-bootstrap-debug.js

Roo/bootstrap/MessageBar.js
roojs-bootstrap-debug.js
roojs-bootstrap.js

index 74dfc69..b022f88 100644 (file)
@@ -68,12 +68,7 @@ Roo.extend(Roo.bootstrap.MessageBar, Roo.bootstrap.Component,  {
             }
             this.el = Roo.get(document.body).createChild(cfg, position);
         }
-    },
-    
-    initEvents : function()
-    {
-        Roo.log('initEvent!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
-        Roo.log(this.el.select('>button.close'));
+        
         this.el.select('>button.close').on('click', this.hide, this);
     },
     
index 57cf517..d46ad02 100644 (file)
@@ -15611,12 +15611,7 @@ Roo.extend(Roo.bootstrap.MessageBar, Roo.bootstrap.Component,  {
             }
             this.el = Roo.get(document.body).createChild(cfg, position);
         }
-    },
-    
-    initEvents : function()
-    {
-        Roo.log('initEvent!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
-        Roo.log(this.el.select('>button.close'));
+        
         this.el.select('>button.close').on('click', this.hide, this);
     },
     
index 8e56cf0..9c975ba 100644 (file)
@@ -335,4 +335,5 @@ this.fireEvent("rowselect",this,A,r);this.fireEvent("selectionchange",this);}},d
 this.fireEvent("rowdeselect",this,A);this.fireEvent("selectionchange",this);},restoreLast:function(){if(this._last){this.last=this._last;}},acceptsNav:function(A,B,cm){return !cm.isHidden(B)&&cm.isCellEditable(B,A);},onEditorKey:function(A,e){var k=e.getKey(),B,g=this.grid,ed=g.activeEditor;if(k==e.TAB){e.stopEvent();ed.completeEdit();if(e.shiftKey){B=g.walkCells(ed.row,ed.col-1,-1,this.acceptsNav,this);}else {B=g.walkCells(ed.row,ed.col+1,1,this.acceptsNav,this);}}else if(k==e.ENTER&&!e.ctrlKey){e.stopEvent();ed.completeEdit();if(e.shiftKey){B=g.walkCells(ed.row-1,ed.col,-1,this.acceptsNav,this);}else {B=g.walkCells(ed.row+1,ed.col,1,this.acceptsNav,this);}}else if(k==e.ESC){ed.cancelEdit();}if(B){g.startEditing(B[0],B[1]);}}});
 //Roo/bootstrap/MessageBar.js
 Roo.bootstrap.MessageBar=function(A){Roo.bootstrap.MessageBar.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.MessageBar,Roo.bootstrap.Component,{html:'',weight:'info',closable:true,getAutoCreate:function(){var A={tag:'div',cls:'alert alert-dismissable alert-messages alert-'+this.weight,html:this.html||''};if(this.closable){A.cn={tag:'button',cls:'close',html:'x'}}return A;},onRender:function(ct,A){Roo.bootstrap.Component.superclass.onRender.call(this,ct,A);Roo.log('onRender!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');if(!this.el){var B=Roo.apply({},this.getAutoCreate());B.id=Roo.id();if(this.cls){B.cls+=' '+this.cls;}if(this.style){B.style=this.style;}
-this.el=Roo.get(document.body).createChild(B,A);}},initEvents:function(){Roo.log('initEvent!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');Roo.log(this.el.select('>button.close'));this.el.select('>button.close').on('click',this.hide,this);},show:function(){if(!this.rendered){this.render();}},hide:function(){this.el.hide();}});
+this.el=Roo.get(document.body).createChild(B,A);}
+this.el.select('>button.close').on('click',this.hide,this);},show:function(){if(!this.rendered){this.render();}},hide:function(){this.el.hide();}});