在露天工作流程表格的新标签页中打开“查看详细信息”页面

时间:2017-02-22 10:14:09

标签: alfresco alfresco-share alfresco-webscripts

在alfresco工作流程接受/拒绝页面的新标签页中打开“查看详细信息”页面,但**也要保持对当前页面(批准/拒绝)页面的关注** target = _blank 关注当前页面正在迷失方向   ****覆盖object-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>';

                  }

1 个答案:

答案 0 :(得分:1)

当打开新标签时,保持当前标签是由浏览器控制的,这里有一些解决方法。

您可能需要模拟&#34; Ctrl&#34;点击链接时点击活动。请参阅以下链接。

https://stackoverflow.com/a/36027776/405317

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

希望你会有所了解。

相关问题