* @param {Roo.bootstrap.Modal} this
* @param {Roo.EventObject} e
*/
- "resize" : true,
- /**
- * @event close
- * Fire when the top 'x' close button is pressed.
- * @param {Roo.bootstrap.Modal} this
- * @param {Roo.EventObject} e
- */
- "close" : true
+ "resize" : true
});
this.buttons = this.buttons || [];
if(this.specificTitle){
title = this.title;
- };
+ }
var header = [];
if (this.allow_close && Roo.bootstrap.version == 3) {
initEvents : function()
{
if (this.allow_close) {
- this.closeEl.on('click', this.onClosePress, this);
+ this.closeEl.on('click', this.hide, this);
}
Roo.EventManager.onWindowResize(this.resize, this, true);
},
-
- onClosePress : function()
- {
-
- },
+
resize : function()
{
if (this.fitwindow) {
- var view_height = Roo.lib.Dom.getViewportHeight(true);
-
+
this.setSize(
this.width || Roo.lib.Dom.getViewportWidth(true) - 30,
this.height || Roo.lib.Dom.getViewportHeight(true) // catering margin-top 30 margin-bottom 30
Roo.get(document.body).addClass('modal-open');
if(this.animate){ // element has 'fade' - so stuff happens after .3s ?- not sure why the delay?
- var _this = this;
+
(function(){
this.el.addClass('show');
this.el.addClass('in');
{
this.dialogEl.setWidth(w);
- var diff = this.headerEl.getHeight() + this.footerEl.getHeight() + 30; // dialog margin-bottom: 30
+ var diff = this.headerEl.getHeight() + this.footerEl.getHeight() + 60; // dialog margin-bottom: 30
this.bodyEl.setHeight(h - diff);
*/
activate : function(id)
{
- Roo.log('activite:' + id);
+ //Roo.log('activite:' + id);
var tab = this.items[id];
if(!tab){