value should be lower case when checking for rtsp
This commit is contained in:
parent
8a2605578a
commit
96aa20fb79
|
@ -804,7 +804,7 @@ switch ( $tab )
|
||||||
<?php
|
<?php
|
||||||
} elseif ( $monitor->Type == "Remote" ) {
|
} elseif ( $monitor->Type == "Remote" ) {
|
||||||
?>
|
?>
|
||||||
<tr><td><?php echo translate('RemoteProtocol') ?></td><td><?php echo htmlSelect( "newMonitor[Protocol]", $remoteProtocols, $monitor->Protocol(), "updateMethods( this );if(this.value=='RTSP'){\$('RTSPDescribe').show();}else{\$('RTSPDescribe').hide();}" ); ?></td></tr>
|
<tr><td><?php echo translate('RemoteProtocol') ?></td><td><?php echo htmlSelect( "newMonitor[Protocol]", $remoteProtocols, $monitor->Protocol(), "updateMethods( this );if(this.value=='rtsp'){\$('RTSPDescribe').show();}else{\$('RTSPDescribe').hide();}" ); ?></td></tr>
|
||||||
<?php
|
<?php
|
||||||
if ( empty($monitor->Protocol) || $monitor->Protocol == "http" ) {
|
if ( empty($monitor->Protocol) || $monitor->Protocol == "http" ) {
|
||||||
?>
|
?>
|
||||||
|
@ -865,7 +865,7 @@ switch ( $tab )
|
||||||
if ( $monitor->Type == "Remote" )
|
if ( $monitor->Type == "Remote" )
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<tr id="RTSPDescribe"<?php if ( $monitor->Protocol != 'RTSP' ) { echo ' style="display:none;"'; } ?>><td><?php echo translate('RTSPDescribe') ?> (<?php echo makePopupLink( '?view=optionhelp&option=OPTIONS_RTSPDESCRIBE', 'zmOptionHelp', 'optionhelp', '?' ) ?>) </td><td><input type="checkbox" name="newMonitor[RTSPDescribe]" value="1"<?php if ( !empty($monitor->RTSPDescribe) ) { ?> checked="checked"<?php } ?>/></td></tr>
|
<tr id="RTSPDescribe"<?php if ( $monitor->Protocol != 'rtsp' ) { echo ' style="display:none;"'; } ?>><td><?php echo translate('RTSPDescribe') ?> (<?php echo makePopupLink( '?view=optionhelp&option=OPTIONS_RTSPDESCRIBE', 'zmOptionHelp', 'optionhelp', '?' ) ?>) </td><td><input type="checkbox" name="newMonitor[RTSPDescribe]" value="1"<?php if ( !empty($monitor->RTSPDescribe) ) { ?> checked="checked"<?php } ?>/></td></tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue