--- rat/client/parameter.html 2022/07/06 22:00:43 1.88 +++ rat/client/parameter.html 2022/07/07 03:37:02 1.90 @@ -5,7 +5,7 @@ The LearningOnline Network with CAPA Parameter Input Window // -// $Id: parameter.html,v 1.88 2022/07/06 22:00:43 raeburn Exp $ +// $Id: parameter.html,v 1.90 2022/07/07 03:37:02 raeburn Exp $ // // Copyright Michigan State University Board of Trustees // @@ -422,6 +422,7 @@ function validateDeepLink() { svalue += sform.deeplinkacc.options[sform.deeplinkacc.selectedIndex].value+','; var keyRegExp = /^[a-zA-Z\d_.!@#$%^&*()+=-]+$/; var numRegExp = /^\d+$/; + var exitTextRegExp = /^[^'":;,]+$/; if (sform.deeplinkprotect.length) { for (var i=0; i= 1) { dlinkmenusdivsty = 'inline-block'; } + if (dlinkexitRegExp.test(deeplinkvals[7])) { + linkexitparts = deeplinkvals[7].split(':'); + deeplinkvals[7] = linkexitparts[0]; + if (deeplinkvals[7] != 'no') { + dlinkexitdivsty = 'inline-block'; + if (!linkexitparts[1]) { + dlinkexittextval = 'Exit Tool'; + } else { + dlinkexittextval = linkexitparts[1]; + } + } + } } else { - deeplinkvals = ['off','unhide','full','res','','0']; + deeplinkvals = ['off','unhide','full','res','','0','_self','no']; } var deeplinkstate = new Array(); deeplinkstate = ['only','off','both']; @@ -1231,6 +1292,7 @@ function draw() { deeplinktarget = ['_self','_top']; var deeplinktargettxt = new Array(); deeplinktargettxt = ['Embedded','Not embedded']; + var deeplinkexit = ['yes','url','no']; tablestart('Deep-linked items'); choicewrite('Access status?'); choicewrite(''); @@ -1422,6 +1484,27 @@ function draw() { choicewrite('>'+deeplinktargettxt[i]+''); } choicewrite(''); + choicewrite(''); + choicewrite('Exit Button?'); + choicewrite(''); + choicewrite('not in use'); + choicewrite(''); + choicewrite('in use, no redirect '); + choicewrite(''); + choicewrite('in use, redirect to URL'); + choicewrite(''); + choicewrite('Button text: '); + choicewrite(''); + choicewrite(''); choicewrite(''); } }