PDA

View Full Version : Window contents appear only on first time



nicosk
26 Nov 2009, 2:40 AM
function loadPeriods(node)
{
if (!Ext.getCmp(node.text)) {
var periodWin = new Ext.Window({
title : '<p align="center">'+node.text+'</p>',
closable : true,
id : node.text,
draggable : false,
modal : true,
layout :'fit',
width : 400,
height : 350,
plain : true,
closeaction : 'hide',
items : [{
xtype : 'panel',
autoHeight: true,
items : [periodGrid, periodForm]
}]
});
periodDS.load();
periodWin.show();
}
}
First time the window is loaded
http://www.pgses.com/firstLoad.gif

The second time the window is loaded
http://www.pgses.com/secondLoad.gif

Condor
26 Nov 2009, 2:44 AM
closeaction -> closeAction