Consolidate initPage

pull/2077/head
digital-gnome 2017-11-11 11:20:10 -05:00
parent 91c3e3573c
commit 44c8299faa
1 changed files with 3 additions and 4 deletions

View File

@ -1081,9 +1081,6 @@ function initPage() {
} else {
progressBarNav ();
streamCmdTimer = streamQuery.delay( 250 );
eventQuery.pass(eventData.id);
initialAlarmCues(eventData.Id); //call ajax+renderAlarmCues for zms.
if ( canStreamNative ) {
var streamImg = $('imageFeed').getElement('img');
if ( !streamImg )
@ -1091,7 +1088,9 @@ function initPage() {
$(streamImg).addEvent( 'click', function( event ) { handleClick( event ); } );
}
}
if (scale == "auto") changeScale();
nearEventsQuery(eventData.Id);
initialAlarmCues(eventData.Id); //call ajax+renderAlarmCues
if (scale == "auto") changeScale();
}
// Kick everything off