}
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);
},
}
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);
},
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();}});