2017-02-22 30 views
0

打開「查看詳細信息」頁面在新的選項卡在露天工作流程接受/拒絕頁面,但**也保留關注當前頁面(認可/拒絕)頁面* * 與目標= _blank注重當前頁面上迷路 ****覆蓋這裏****打開「查看詳細信息」頁面在新的選項卡上在露天工作流表格

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

對象finder.js打開一個新標籤,當在當前分頁中被控制通過瀏覽器,這裏有一些解決方法。

您可能需要模擬「Ctrl」+點擊事件,同時點擊鏈接。請參考下面的鏈接。

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

希望你會得到一些想法。

+0

謝謝Murlidharan – k10ml

相關問題