|
@@ -221,6 +221,8 @@ function(el,formList,roleAndSite,formId=null,idLabel=null,elError=null){
|
|
let idLabel=crfSetup.getParticipantLabel(entry);
|
|
let idLabel=crfSetup.getParticipantLabel(entry);
|
|
let text=[entry['entryId'],user,idLabel,formStatus];
|
|
let text=[entry['entryId'],user,idLabel,formStatus];
|
|
fbox.onclick=function(){that.openForm(entry,roleAndSite,elError);};
|
|
fbox.onclick=function(){that.openForm(entry,roleAndSite,elError);};
|
|
|
|
+ //right click opens in new tab
|
|
|
|
+ fbox.oncontextmenu=function(){that.openForm(entry,roleAndSite,elError,"_blank");};
|
|
|
|
|
|
for (let j=0;j<text.length;j++){
|
|
for (let j=0;j<text.length;j++){
|
|
crfHTML.createParagraph(text[j],null,fbox);
|
|
crfHTML.createParagraph(text[j],null,fbox);
|
|
@@ -286,7 +288,7 @@ function(row,deletedForms){
|
|
|
|
|
|
|
|
|
|
formPortal.openForm=
|
|
formPortal.openForm=
|
|
-function(crfEntry,roleAndSite,elError=null){
|
|
|
|
|
|
+function(crfEntry,roleAndSite,elError=null,target="_self"){
|
|
let fName="[openForm]";
|
|
let fName="[openForm]";
|
|
if (!roleAndSite){
|
|
if (!roleAndSite){
|
|
if (elError)
|
|
if (elError)
|
|
@@ -325,8 +327,9 @@ function(crfEntry,roleAndSite,elError=null){
|
|
var wikiURL = LABKEY.ActionURL.buildURL("crf", formUrl , containerPath, params);
|
|
var wikiURL = LABKEY.ActionURL.buildURL("crf", formUrl , containerPath, params);
|
|
this.print(fName+" redirecting to "+wikiURL);
|
|
this.print(fName+" redirecting to "+wikiURL);
|
|
|
|
|
|
-
|
|
|
|
- window.location = wikiURL;
|
|
|
|
|
|
+ window.open(wikiURL,target);
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
formPortal.createForm=
|
|
formPortal.createForm=
|