Merge branch 'master' into storageareas
This commit is contained in:
commit
520d1bb7bf
|
@ -85,7 +85,9 @@ class Event {
|
|||
|
||||
public function Monitor() {
|
||||
if ( isset($this->{'MonitorId'}) ) {
|
||||
return Monitor::find_one(array('Id'=>$this->{MonitorId}));
|
||||
$Monitor = Monitor::find_one(array('Id'=>$this->{'MonitorId'}));
|
||||
if ( $Monitor )
|
||||
return $Monitor;
|
||||
}
|
||||
return new Monitor();
|
||||
}
|
||||
|
|
|
@ -239,7 +239,7 @@ function getCmdResponse( respObj, respText ) {
|
|||
|
||||
if ( streamStatus.auth ) {
|
||||
// Try to reload the image stream.
|
||||
var streamImg = document.getElementById('evtStream');
|
||||
var streamImg = $j('#evtStream');
|
||||
if ( streamImg )
|
||||
streamImg.src = streamImg.src.replace( /auth=\w+/i, 'auth='+streamStatus.auth );
|
||||
} // end if haev a new auth hash
|
||||
|
@ -992,10 +992,15 @@ function initPage() {
|
|||
progressBarNav ();
|
||||
streamCmdTimer = streamQuery.delay( 250 );
|
||||
if ( canStreamNative ) {
|
||||
var streamImg = $('imageFeed').getElement('img');
|
||||
if ( !streamImg )
|
||||
streamImg = $('imageFeed').getElement('object');
|
||||
$(streamImg).addEvent( 'click', function( event ) { handleClick( event ); } );
|
||||
var imageFeed = $('imageFeed');
|
||||
if ( !imageFeed ) {
|
||||
console.log('No element with id tag imageFeed found.');
|
||||
} else {
|
||||
var streamImg = imageFeed.getElement('img');
|
||||
if ( !streamImg )
|
||||
streamImg = imageFeed.getElement('object');
|
||||
$(streamImg).addEvent( 'click', function( event ) { handleClick( event ); } );
|
||||
}
|
||||
}
|
||||
}
|
||||
nearEventsQuery(eventData.Id);
|
||||
|
|
Loading…
Reference in New Issue