mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-27 00:38:30 -04:00
export the layout id of FreeForm to javascript land
This commit is contained in:
1 parent
62a49913d8
commit
b0bb337309
1 file changed
+4
-2
@@ -52,8 +52,10 @@ $heights = array(
|
||||
|
||||
$layouts = ZM\MontageLayout::find(NULL, array('order'=>"lower('Name')"));
|
||||
$layoutsById = array();
|
||||
$FreeFormLayoutId = 0;
|
||||
foreach ( $layouts as $l ) {
|
||||
if ( $l->Name() == 'Freeform' ) {
|
||||
$FreeFormLayoutId = $l->Id();
|
||||
$layoutsById[$l->Id()] = $l;
|
||||
break;
|
||||
}
|
||||
@@ -201,11 +203,11 @@ if (canView('System')) {
|
||||
|
||||
<span id="widthControl">
|
||||
<label><?php echo translate('Width') ?></label>
|
||||
<?php echo htmlSelect('width', $widths, $options['width'], array('id'=>'width', 'data-on-change-this'=>'changeWidth')); ?>
|
||||
<?php echo htmlSelect('width', $widths, $options['width'], array('id'=>'width', 'data-on-change'=>'changeWidth')); ?>
|
||||
</span>
|
||||
<span id="heightControl">
|
||||
<label><?php echo translate('Height') ?></label>
|
||||
<?php echo htmlSelect('height', $heights, $options['height'], array('id'=>'height', 'data-on-change-this'=>'changeHeight')); ?>
|
||||
<?php echo htmlSelect('height', $heights, $options['height'], array('id'=>'height', 'data-on-change'=>'changeHeight')); ?>
|
||||
</span>
|
||||
<span id="scaleControl">
|
||||
<label><?php echo translate('Scale') ?></label>
|
||||
|
||||
Reference in new issue
Block a user