mirror of
https://github.com/FriendsOfTYPO3/feedit.git
synced 2024-11-22 14:36:08 +01:00
[TASK] feedit: Bring back editNoPopup
* Restore edit_editNoPopup/forceNoPopup TSConfig options removed in #49640 * Initialize frontend editing when displayFieldEditIcons is set Releases: master, 6.2 Resolves: #61095 Related: #43447 Related: #49640 Change-Id: I900a62b447a1a67265ce22cd73e150646344e090 Reviewed-on: http://review.typo3.org/32279 Reviewed-by: Georg Ringer <georg.ringer@gmail.com> Tested-by: Georg Ringer <georg.ringer@gmail.com> Reviewed-by: Markus Klein <klein.t3@reelworx.at> Tested-by: Markus Klein <klein.t3@reelworx.at>
This commit is contained in:
parent
89a74a38f6
commit
d67fa03411
1 changed files with 11 additions and 3 deletions
|
@ -236,7 +236,8 @@ class FrontendEditPanel {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a link to a script (eg. typo3/alt_doc.php or typo3/db_new.php) which either opens in the current frame OR in a pop-up window.
|
* Creates a link to a script (eg. typo3/alt_doc.php or typo3/db_new.php)
|
||||||
|
* which either opens in the current frame OR in a pop-up window.
|
||||||
*
|
*
|
||||||
* @param string $string The string to wrap in a link, typ. and image used as button in the edit panel.
|
* @param string $string The string to wrap in a link, typ. and image used as button in the edit panel.
|
||||||
* @param string $url The URL of the link. Should be absolute if supposed to work with <base> path set.
|
* @param string $url The URL of the link. Should be absolute if supposed to work with <base> path set.
|
||||||
|
@ -244,9 +245,16 @@ class FrontendEditPanel {
|
||||||
* @see editPanelLinkWrap()
|
* @see editPanelLinkWrap()
|
||||||
*/
|
*/
|
||||||
protected function editPanelLinkWrap_doWrap($string, $url) {
|
protected function editPanelLinkWrap_doWrap($string, $url) {
|
||||||
$onclick = 'vHWin=window.open(' . GeneralUtility::quoteJSvalue($url . '&returnUrl=close.html') . ',\'FEquickEditWindow\',\'width=690,height=500,status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return false;';
|
// Open in the current frame?
|
||||||
|
if ($GLOBALS['BE_USER']->adminPanel->extGetFeAdminValue('edit', 'editNoPopup')) {
|
||||||
|
$href = htmlspecialchars($url . '&returnUrl=' . rawurlencode(GeneralUtility::getIndpEnv('REQUEST_URI')));
|
||||||
|
return '<a href="' . $href . '" class="frontEndEditIconLinks">' . $string . '</a>';
|
||||||
|
} else {
|
||||||
|
$onclick = 'vHWin=window.open(' . GeneralUtility::quoteJSvalue($url . '&returnUrl=close.html') .
|
||||||
|
',\'FEquickEditWindow\',\'width=690,height=500,status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return false;';
|
||||||
return '<a href="#" onclick="' . htmlspecialchars($onclick) . '" class="frontEndEditIconLinks">' . $string . '</a>';
|
return '<a href="#" onclick="' . htmlspecialchars($onclick) . '" class="frontEndEditIconLinks">' . $string . '</a>';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns TRUE if the input table/row would be hidden in the frontend, according to the current time and simulate user group
|
* Returns TRUE if the input table/row would be hidden in the frontend, according to the current time and simulate user group
|
||||||
|
|
Loading…
Reference in a new issue