mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°6154 N°6219 - Relations Read - tooltip, confirmation title and message (#486)
N°6154 - n:n Read - tooltip, confirmation title and message on Add-Edit-Remove N°6219 - 1:n Read: tooltip, modal title and message on Add-Edit-Remove-Delete
This commit is contained in:
@@ -219,6 +219,7 @@ JS
|
||||
$bPrintable = utils::ReadParam('printable', '0') === '1';
|
||||
$sClass = utils::ReadParam('class', '', false, 'class');
|
||||
$sId = utils::ReadParam('id', '');
|
||||
$sFormTitle = utils::ReadPostedParam('form_title', null, utils::ENUM_SANITIZATION_FILTER_STRING);
|
||||
|
||||
// Check parameters
|
||||
if (utils::IsNullOrEmptyString($sClass) || utils::IsNullOrEmptyString($sId))
|
||||
@@ -243,6 +244,11 @@ JS
|
||||
$aFormExtraParams = array('wizard_container' => 1);
|
||||
FormHelper::UpdateFlagsFromContext($oObj, $aFormExtraParams);
|
||||
|
||||
// Allow form title customization
|
||||
if (!utils::IsNullOrEmptyString($sFormTitle)) {
|
||||
$aFormExtraParams['form_title'] = $sFormTitle;
|
||||
}
|
||||
|
||||
if ($this->IsHandlingXmlHttpRequest()) {
|
||||
$oPage = new AjaxPage('');
|
||||
$aFormExtraParams['js_handlers'] = [];
|
||||
|
||||
Reference in New Issue
Block a user