fix type in htmlSelect
This commit is contained in:
parent
d71eaa66ec
commit
8a2605578a
|
@ -514,7 +514,7 @@ function getEventPath( $event )
|
|||
|
||||
function getEventDefaultVideoPath( $event ) {
|
||||
$Event = new Event( $event );
|
||||
return $Event->getStreamSrc( array( "mode=mpeg" ) );
|
||||
return $Event->getStreamSrc( array( "mode=mpeg&format=h264" ) );
|
||||
//$Event->Path().'/'.$event['DefaultVideo'];
|
||||
}
|
||||
|
||||
|
@ -599,7 +599,7 @@ function truncText( $text, $length, $deslash=1 )
|
|||
return( preg_replace( "/^(.{".$length.",}?)\b.*$/", "\\1…", ($deslash?stripslashes($text):$text) ) );
|
||||
}
|
||||
|
||||
function htmlSelect( $name, $contents, $values, $behaviors=false ) {
|
||||
function htmlSelect( $name, $contents, $values, $behaviours=false ) {
|
||||
|
||||
$behaviourText = "";
|
||||
if ( !empty($behaviours) ) {
|
||||
|
@ -611,6 +611,7 @@ function htmlSelect( $name, $contents, $values, $behaviors=false ) {
|
|||
$behaviourText = ' onchange="'.$behaviours.'"';
|
||||
}
|
||||
}
|
||||
|
||||
$html = "<select name=\"$name\" id=\"$name\"$behaviourText>";
|
||||
foreach ( $contents as $value=>$text ) {
|
||||
$selected = is_array( $values ) ? in_array( $value, $values ) : $value==$values;
|
||||
|
|
Loading…
Reference in New Issue