function
wdcDOB_InitializeDateChooser(oDateChooser)
{
// used to open
oDateChooser._myClick =
function()
var me = igdrp_getComboById('<%=wdcDOB.ClientID%>');
if(me && !me.isDropDownVisible() && (!me._calOpenedTime || me._calOpenedTime + 500 < new Date().getTime()))
me.setDropDownVisible(
true);
}
oDateChooser._myFocusin =
if(me && !me.isDropDownVisible())
oDateChooser._myFocusout =
if(me && me.isDropDownVisible())
var dropDownPanelContainer = '<%=wdcDOB.ClientID%>' + "_DrpPnl";
if(document.activeElement.id.indexOf(dropDownPanelContainer) < 0)
false);
oDateChooser._myChange =
oDateChooser.inputBox.onclick = oDateChooser._myClick;
oDateChooser.inputBox.onchange = oDateChooser._myChange;
oDateChooser.inputBox.onfocusin = oDateChooser._myFocusin;
oDateChooser.inputBox.onfocusout = oDateChooser._myFocusout;
Hi Dharshan,
I copied those codes to a test website, added WebDateChooser with ID="wdcDOB" and it seemed to work as you probably expected. On click/focus calendar was opened and it was closed on lost focus.
I did not analyze flow of logic, but I noticed _calOpenedTime. There is no such variable in ig_WebDropDown.js and that variable is never set by application. So, it is a dummy and it has no impact on behavior.