BeepPadUI/Workflow/shared/messaging.js
// select the best element in the list control
select the best element in the list control
select the best element in the list control
function lctrlSelectFirst()
{
	var bSelectRequested = false;
	var strRequestedID = extractParam(""+document.location,"msgID");
	if(strRequestedID.length > 0)
	{
		var elmRequested = document.getElementById(strRequestedID);
		if(elmRequested)
		{
			lctrlSelectItem(elmRequested);
			bSelectRequested = true;
		}
	}
	if(! bSelectRequested)
	{
		var elmMsgList = document.getElementById("msglist");
		if(elmMsgList)
		{
			lctrlSelectItem(elmMsgList.firstChild);
		}
	}
}
function lctrlSelectFirst ( ) { var bSelectRequested = false ; var strRequestedID = extractParam ( "" + document . location , "msgID" ) ; if ( strRequestedID . length > 0 ) { var elmRequested = document . getElementById ( strRequestedID ) ; if ( elmRequested ) { lctrlSelectItem ( elmRequested ) ; bSelectRequested = true ; } } if ( ! bSelectRequested ) { var elmMsgList = document . getElementById ( "msglist" ) ; if ( elmMsgList ) { lctrlSelectItem ( elmMsgList . firstChild ) ; } } }
select the best element in the list control
select the best element in the list control
// try to select the requested item // select the first item in the list