mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°1843 Portal: Fix inline images being displayed too large sometimes in forms
This commit is contained in:
@@ -511,8 +511,6 @@ EOF
|
||||
});
|
||||
EOF
|
||||
);
|
||||
// MagnificPopup on images
|
||||
$oOutput->AddJs(InlineImage::FixImagesWidth());
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -526,6 +524,20 @@ EOF
|
||||
}
|
||||
}
|
||||
|
||||
// Finally, no matter the field mode
|
||||
switch ($sFieldClass)
|
||||
{
|
||||
case 'Combodo\\iTop\\Form\\Field\\TextAreaField':
|
||||
case 'Combodo\\iTop\\Form\\Field\\CaseLogField':
|
||||
$bRichEditor = ($this->oField->GetFormat() === TextAreaField::ENUM_FORMAT_HTML);
|
||||
if($bRichEditor)
|
||||
{
|
||||
// MagnificPopup on images
|
||||
$oOutput->AddJs(InlineImage::FixImagesWidth());
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return $oOutput;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user