From b0bb337309db8a988eca4aa6ed2fdcb61b96b3d6 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 27 Apr 2022 21:51:50 -0400 Subject: [PATCH] export the layout id of FreeForm to javascript land --- web/skins/classic/views/montage.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/skins/classic/views/montage.php b/web/skins/classic/views/montage.php index 853e80490..f4f0f8e6f 100644 --- a/web/skins/classic/views/montage.php +++ b/web/skins/classic/views/montage.php @@ -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')) { - 'width', 'data-on-change-this'=>'changeWidth')); ?> + 'width', 'data-on-change'=>'changeWidth')); ?> - 'height', 'data-on-change-this'=>'changeHeight')); ?> + 'height', 'data-on-change'=>'changeHeight')); ?>