whitespace and jquery
parent
169b64813b
commit
c6373d3dca
|
@ -36,12 +36,13 @@ if ( $user['MonitorIds'] ) {
|
||||||
}
|
}
|
||||||
$Monitor = $Event->Monitor();
|
$Monitor = $Event->Monitor();
|
||||||
|
|
||||||
if ( isset( $_REQUEST['rate'] ) )
|
if (isset($_REQUEST['rate'])) {
|
||||||
$rate = validInt($_REQUEST['rate']);
|
$rate = validInt($_REQUEST['rate']);
|
||||||
else
|
} else {
|
||||||
$rate = reScale( RATE_BASE, $Monitor->DefaultRate(), ZM_WEB_DEFAULT_RATE );
|
$rate = reScale(RATE_BASE, $Monitor->DefaultRate(), ZM_WEB_DEFAULT_RATE);
|
||||||
|
}
|
||||||
|
|
||||||
if ( isset( $_REQUEST['scale'] ) ) {
|
if (isset($_REQUEST['scale'])) {
|
||||||
$scale = validInt($_REQUEST['scale']);
|
$scale = validInt($_REQUEST['scale']);
|
||||||
} else if ( isset( $_COOKIE['zmEventScale'.$Event->MonitorId()] ) ) {
|
} else if ( isset( $_COOKIE['zmEventScale'.$Event->MonitorId()] ) ) {
|
||||||
$scale = $_COOKIE['zmEventScale'.$Event->MonitorId()];
|
$scale = $_COOKIE['zmEventScale'.$Event->MonitorId()];
|
||||||
|
|
|
@ -924,11 +924,11 @@ function setupListener() {
|
||||||
|
|
||||||
function initPage() {
|
function initPage() {
|
||||||
//FIXME prevent blocking...not sure what is happening or best way to unblock
|
//FIXME prevent blocking...not sure what is happening or best way to unblock
|
||||||
if ( $('videoobj') ) {
|
if ($j('#videoobj').length) {
|
||||||
vid = videojs("videoobj");
|
vid = videojs("videoobj");
|
||||||
initialAlarmCues(eventData.Id); //call ajax+renderAlarmCues after videojs is. should be only call to initialAlarmCues on vjs streams
|
initialAlarmCues(eventData.Id); //call ajax+renderAlarmCues after videojs is. should be only call to initialAlarmCues on vjs streams
|
||||||
}
|
}
|
||||||
if ( vid ) {
|
if (vid) {
|
||||||
/*
|
/*
|
||||||
setupListener();
|
setupListener();
|
||||||
vid.removeAttribute("controls");
|
vid.removeAttribute("controls");
|
||||||
|
|
Loading…
Reference in New Issue