5. $.each(updates, function(ind)
else
//grab old merchandise height
// a lot more convenient for you to contact by approach of the particular API as then a original
$("#nbItemContainer").append(newsbulletin.displayItems(itemDetails));
if(it.author.image == '')
//console.log('y'+lastNBObjStr);
itemDetails.authorfb = it.author.facebook;
nbNotes = nbItemObj.notes;
itemDetails.link = it.link;
if(nbItemObj.bgPos != null)
//console.log('x'+currNBObjStr);
if (idx == nbNotes.length-1)
nbjsId = 0;
//only pass the author image if it is actually not displayed in some of the things yet
//text
this.notebio = ''+nbNote.noteAuthor.name+''
';
this.social = '';
"
currNBObjStr = currNBObjStr + data.updates[ind].objId + data.updates[ind].date;
$.each(nbNotes, function(idx)
if(nbNote.noteAuthor.twitter != null && nbNote.noteAuthor.twitter != '')
$('#text_'+id).html(contentObject[id])
itemDetails.date = it.date;
$("#newsbulletin > .midcontainer > .widget_head > .twitterLink a new >
6. .twitterContent").append("" + twitterImg + "");
if (isDoneLoading)
);
this.itemTypeClass = (this.isStatusUpdate)?'orange':'blue';
itemDetails.objType = it.objType;
setInterval(
nbNoteStr = '';
//store id a list of opened objects
$("#newsbulletin > .midcontainer > .nbFooter").append("");
this.nbItemStyleAuthor = '';
this.nbItemStyleAuthor = ' nbItemContentsAuthor'
var oldItemHeight = $('#nbItem_'+id).height();
//dynamicJS.load('newsBulletin','http://newspreview.corp.dig.com/xmldata/newsbulletin?id=1356450
5');
if (typeof hasHeight != 'undefined')
itemDetails.title = it.title;
//check if status update
this.noteAuthorBlock = '';
this.social = '';
'+this.notesocial+'
this.text = nbItemObj.text;
var twitterImg = " "
this.notefb = '';
if(nbNote.noteAuthor.facebook != null && nbNote.noteAuthor.facebook != '')
//append widget header
if(nbItemObj.authorfb != null && nbItemObj.authorfb != '')
8. this.nbTextOverride = '';
this.notefb = ''
);
isShareLinkLoaded = true;
else
//populate the itemDetails object
this.itemBgPos = '100% 55%';
'
//console.log('refresh');
itemDetails.author = 'ABC News'
//author image
var timeoutId = setTimeout(function()
if(data)
'+this.notebio+'
var itemDetails = new Object();
window.api.reinitialise();
'+this.authorBlock+'
// Initialization with the container ought to be able to be done after all the markup may be loaded
itemDetails.authortwitter = it.author.twitter;
this.notebio = '';
dynamicJS.load('newsBulletin'+nbjsId,
newsbulletin.baseloc+'/xmldata/newsbulletin?id=14640490&twOverride=&lpos='+newsbulletin.lpo
s2+'§ion=&'+nbjsId);
if(isNewDataFlag)
isNewDataFlag = isNewData(data);
// since there's no listener which might be passed straight into reinitialise() for callback
//reinitialize scroll
9. nbNoteStr += this.nbNoteDiv;
if ($.browser.webkit)
, 3000);
it.author.image = 'http://a.abcnews.com/assets/images/abc_news_logo_84x84.png'
isDoneLoading = false; // flag to check if the html is performed loading within the jScrollPane
window.api.getContentPane().html(
this.nbH4Style = ' style=width:210px;';
//build markup
if(nbjsId .midcontainer > .nbFooter").css("display":"none");
itemDetails.authorfb = 'http://www.facebook.com/abcnews'
nbNote = nbNotes[idx];
//to try and handle caching within webkit browsers
itemDetails.notes = it.notes;
//alert(newsbulletin.baseloc+'/xmldata/newsbulletin?id=14640490&twOverride=&lpos='+newsbulle
tin.lpos+'§ion=&'+nbjsId)
else
this.rowTemp = ''+this.title+'
'
clearTimeout(timeoutId);
if(this.isStatusUpdate)
newsbulletin.authorCutouts.push(it.author.image);
';
shareLink = data.shareLink;
itemDetails.label = it.label;
var newContainerHeight = $("#nbItemContainer").height() + ($('#nbItem_'+id).height()-
oldItemHeight);
this.nbH4Class = 'class=nbheader';
10. if(currNBObjStr != lastNBObjStr)
it = updates[ind];
$("#newsbulletin > .midcontainer > .nbFooter").css("height":"35px", "border-top":"1px strong
#d5d5d5", "border-bottom":"border-bottom:1px sound #eaeaea");
function newsBulletin(data)
itemDetails.author = it.author.name;
itemDetails.feed = it.feed;
'+this.text+'
'+nbNote.noteHeadline+'
if($.browser.msie)
);
this.fb = '';
if(nbItemObj.link != null && nbItemObj.link != '')
lastNBObjStr = '';
return this.rowTemp;
this.textCapped = '';
this.twitter = '';
//display items
this.text = this.textCapped + '... ' + this.morelink;
this.nbItemStyle = '';
currNBObjStr = '';
isShareLinkLoaded = false; // flag to test in the wedding the talk about hyperlink will be loaded
//if item isn't expanded display capped text if applicable
itemDetails.text = it.text;
this.text = '';
,