mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-16 22:08:44 +02:00
Merge remote-tracking branch 'origin/support/3.2' into develop
This commit is contained in:
@@ -4730,7 +4730,7 @@ abstract class DBObject implements iDisplay
|
||||
}
|
||||
}
|
||||
$oDate->modify($sModifier);
|
||||
$this->Set($sAttCode, $oDate->format('Y-m-d H:i:s'));
|
||||
$this->Set($sAttCode, $oDate->getTimestamp());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -340,11 +340,9 @@ $(function()
|
||||
this._markOneMessageAsRead(idxProvider, msgId);
|
||||
|
||||
// ... and open it as intended
|
||||
if ($(oElem).attr('target') !== 'undefined') {
|
||||
window.open($(oElem).attr('href'), $(oElem).attr('target'));
|
||||
} else {
|
||||
window.location.href = $(oElem).attr('href');
|
||||
}
|
||||
// Note: Default behavior is to open the news on a new tab unless it is specified otherwise
|
||||
const urlTarget = $(oElem).attr('target') !== 'undefined' ? $(oElem).attr('target') : '_blank';
|
||||
window.open($(oElem).attr('href'), urlTarget);
|
||||
|
||||
// Finally refresh messages
|
||||
$(this.element).popover_menu("togglePopup");
|
||||
|
||||
@@ -83,6 +83,7 @@ HTML;
|
||||
'id' => $oMessage->GetKey(),
|
||||
'text' => $sText,
|
||||
'url' => Router::GetInstance()->GenerateUrl(self::ROUTE_NAMESPACE.'.view_event', ['event_id' => $oMessage->GetKey()]),
|
||||
'target' => '_self',
|
||||
'start_date' => $oMessage->Get('date'),
|
||||
'priority' => $oMessage->Get('priority'),
|
||||
'image' => $sIcon,
|
||||
|
||||
Reference in New Issue
Block a user