BeepPadUI/Workflow/shared/messaging.js
// find the first unread message in the message array
find the first unread message in the message array
find the first unread message in the message array
function findFirstUnreadMessage()
{
	var objRet = null;
	if(aMessages)
	{
		for( var itrMsg = 0 ; itrMsg < aMessages.length ; itrMsg++ )
		{
			if(! aMessages[itrMsg].bViewed )
			{
				objRet = aMessages[itrMsg];
				break;
			}
		}
	}
	return objRet;
}
function findFirstUnreadMessage ( ) { var objRet = null ; if ( aMessages ) { for ( var itrMsg = 0 ; itrMsg < aMessages . length ; itrMsg ++ ) { if ( ! aMessages [ itrMsg ] . bViewed ) { objRet = aMessages [ itrMsg ] ; break ; } } } return objRet ; }
find the first unread message in the message array
find the first unread message in the message array