mirror of
https://github.com/FriendsOfTYPO3/feedit.git
synced 2024-11-25 15:46:09 +01:00
[FEATURE] Make the dimensions of feedit popup configurable
Use TsConfig to change the width & height of the popup used in the edit panel of EXT:feedit. Resolves: #18586 Releases: master Change-Id: Ifbc7ebae75a3454fbfe9a70f0a2b4b1d95a2c094 Reviewed-on: https://review.typo3.org/48617 Reviewed-by: Daniel Goerz <ervaude@gmail.com> Tested-by: Daniel Goerz <ervaude@gmail.com> Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
This commit is contained in:
parent
4730f341f4
commit
21721cd729
1 changed files with 3 additions and 1 deletions
|
@ -304,7 +304,9 @@ class FrontendEditPanel
|
||||||
*/
|
*/
|
||||||
protected function editPanelLinkWrap_doWrap($string, $url, $additionalClasses = '')
|
protected function editPanelLinkWrap_doWrap($string, $url, $additionalClasses = '')
|
||||||
{
|
{
|
||||||
$onclick = 'vHWin=window.open(' . GeneralUtility::quoteJSvalue($url . '&returnUrl=' . ExtensionManagementUtility::extRelPath('backend') . 'Resources/Private/Templates/Close.html') . ',\'FEquickEditWindow\',\'width=690,height=500,status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return false;';
|
$width = MathUtility::forceIntegerInRange($this->backendUser->getTSConfigVal('options.feedit.popupWidth'), 690, 5000, 690);
|
||||||
|
$height = MathUtility::forceIntegerInRange($this->backendUser->getTSConfigVal('options.feedit.popupHeight'), 500, 5000, 500);
|
||||||
|
$onclick = 'vHWin=window.open(' . GeneralUtility::quoteJSvalue($url . '&returnUrl=' . ExtensionManagementUtility::extRelPath('backend') . 'Resources/Private/Templates/Close.html') . ',\'FEquickEditWindow\',\'width=' . $width . ',height=' . $height . ',status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return false;';
|
||||||
return '<a href="#" class="btn btn-default btn-sm ' . htmlspecialchars($additionalClasses) . '" onclick="' . htmlspecialchars($onclick) . '" class="frontEndEditIconLinks">' . $string . '</a>';
|
return '<a href="#" class="btn btn-default btn-sm ' . htmlspecialchars($additionalClasses) . '" onclick="' . htmlspecialchars($onclick) . '" class="frontEndEditIconLinks">' . $string . '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue