mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°6406 - Restore news being opened in a new tab by default to compensate iTop Hub lack of configuration
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user