Skip to content

Commit

Permalink
use htmlSelect to create the Colours dropdown, which fixes a problem …
Browse files Browse the repository at this point in the history
…caused when I inverted the Colours array
  • Loading branch information
Isaac Connor committed Nov 26, 2017
1 parent b1bb002 commit d6bc727
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/skins/classic/views/monitor.php
Expand Up @@ -868,7 +868,8 @@ function fourcc( $a, $b, $c, $d ) {
}
if ( $monitor->Type() != 'NVSocket' ) {
?>
<tr><td><?php echo translate('TargetColorspace') ?></td><td><select name="newMonitor[Colours]"><?php foreach ( $Colours as $name => $value ) { ?><option value="<?php echo $value ?>"<?php if ( $value == $monitor->Colours()) { ?> selected="selected"<?php } ?>><?php echo $name ?></option><?php } ?></select></td></tr>
<tr><td><?php echo translate('TargetColorspace') ?></td><td><?php echo htmlSelect('newMonitor[Colours]', $Colours, $monitor->Colours() ); ?>
</td></tr>
<tr><td><?php echo translate('CaptureWidth') ?> (<?php echo translate('Pixels') ?>)</td><td><input type="text" name="newMonitor[Width]" value="<?php echo validHtmlStr($monitor->Width()) ?>" size="4" onkeyup="updateMonitorDimensions(this);"/></td></tr>
<tr><td><?php echo translate('CaptureHeight') ?> (<?php echo translate('Pixels') ?>)</td><td><input type="text" name="newMonitor[Height]" value="<?php echo validHtmlStr($monitor->Height()) ?>" size="4" onkeyup="updateMonitorDimensions(this);"/></td></tr>
<tr><td><?php echo translate('PreserveAspect') ?></td><td><input type="checkbox" name="preserveAspectRatio" value="1"/></td></tr>
Expand Down

0 comments on commit d6bc727

Please sign in to comment.