From d9e14a0c3a3f1cc63dc92fc778440ae76c1c62aa Mon Sep 17 00:00:00 2001 From: joan Date: Tue, 24 Nov 2020 12:10:02 +0100 Subject: [PATCH] 2629 - Open ticket lines on new window --- front/core/directives/anchor.js | 2 +- modules/ticket/front/index/index.html | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/front/core/directives/anchor.js b/front/core/directives/anchor.js index 9a079affd..b460b3ada 100644 --- a/front/core/directives/anchor.js +++ b/front/core/directives/anchor.js @@ -50,7 +50,7 @@ export function directive($state, $window) { link: function($scope, $element, $attrs) { const data = $scope.$eval($attrs.vnAnchor); $element.on('click', event => { - if (ctrlPressed) + if (ctrlPressed || data.target == '_blank') openNewTab($state, $window, event, data); else changeState($state, event, data); diff --git a/modules/ticket/front/index/index.html b/modules/ticket/front/index/index.html index fe9e98a15..d137d40be 100644 --- a/modules/ticket/front/index/index.html +++ b/modules/ticket/front/index/index.html @@ -126,7 +126,11 @@ -- 2.40.1