在 alfresco 工作流表单的新标签页中打开 "view details" 页面

open "view details" page in new tab at alfresco workflow form

在 alfresco 工作流程 accept/reject 页面的新选项卡中打开 "view details" 页面,但 ** 也将焦点保留在当前页面 (approval/rejection) 页面上** target=_blank 当前页面的焦点丢失 ****覆盖对象-finder.js 这里****

 function ObjectFinder_fnRenderCellListItemName(elCell, oRecord, oColumn, oData)
             {
              if (scope.options.showLinkToTarget && scope.options.targetLinkTemplate !== null)
                {
                 if(item.site=="######xxxxxxxxxxany site****"){
                       title = '<a href="' + link + **'"target="_blank">**' + $html(item.displayName?item.displayName:item.name) + '</a>';


                    }
                }

    ObjectFinder_fnRenderCellListItemActions(elCell, oRecord, oColumn, oData)
         {
          if (scope.options.disabled === false) 
            {
               var links = "", link, listAction;
               for (var i = 0, il = scope.options.listItemActions.length; i < il; i++)
               {
                  listAction = scope.options.listItemActions[i];
                  if (listAction.event)
                      {

                      if(item.site=="xx Any RAndom Site xxxxx"){

                      links += '<div class="list-action"><a href="#" class="' + listAction.name + ' ' + ' list-action-event-' + scope.eventGroup + ' ' + listAction.event+ '" title="' + scope.msg(listAction.label) + '" tabindex="0" **target="**_blank**">'** + scope.msg(listAction.label) + '</a></div>';

                  }

打开新选项卡时停留在当前选项卡是由浏览器控制的,这里有一些解决方法。

您可能需要在单击 link.Please 时模拟 "Ctrl" + Click 事件,请参考以下链接。

Open a new tab in the background?

https://www.quora.com/How-do-I-open-a-link-in-a-new-tab-but-stay-on-the-same-page-using-HTML-code

https://productforums.google.com/forum/#!topic/chrome/RCCFMX3b7NA

希望你能有所了解。