export the layout id of FreeForm to javascript land

This commit is contained in:
Isaac Connor committed 2022-04-28 16:59:23 -04:00
1 parent 62a49913d8
commit b0bb337309
1 file changed
+4 -2
+4 -2
View File
@@ -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>