--- rat/client/parameter.html 2022/05/24 16:23:04 1.87 +++ 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.87 2022/05/24 16:23:04 raeburn Exp $ +// $Id: parameter.html,v 1.90 2022/07/07 03:37:02 raeburn Exp $ // // Copyright Michigan State University Board of Trustees // @@ -401,8 +401,8 @@ function validateInterval() { 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']; @@ -1230,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(''); @@ -1285,7 +1348,7 @@ function draw() { choicewrite(''); var possmenus = new Array(); - if ((pextra != '') && (pextra != null)) { + if ((pextra != '') && (typeof(pextra) != 'undefined')) { var lticRegExp = /^ltic_/; var ltidRegExp = /^ltid_/; var menusRegExp = /^menus_/; @@ -1421,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(''); } }