From 76ee5ff18411e1a0fd9e4acfd48adba1fa0d1e73 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@llnl.gov> Date: Mon, 7 Apr 2008 19:06:59 +0000 Subject: [PATCH] different configurator format --- doc/html/configurator.html.in | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/doc/html/configurator.html.in b/doc/html/configurator.html.in index f3cca760afd..5e364123fd5 100644 --- a/doc/html/configurator.html.in +++ b/doc/html/configurator.html.in @@ -125,6 +125,12 @@ function get_task_plugin_param() return "#TaskPluginParam=" } +function hide_box() +{ + var popup = document.getElementById('out_box'); + popup.style.visibility = 'hidden'; + +} function displayfile() { @@ -256,13 +262,26 @@ function displayfile() " MaxTime=" + document.config.max_time.value + " State=UP" - document.open(); - document.write(printme); - document.close(); + scroll(0,0); + var popup = document.getElementById('out_box'); + + popup.innerHTML = "<a href='javascript:hide_box();'>close</a><br>"; + popup.innerHTML += "#BEGIN SLURM.CONF FILE<br><br>"; + popup.innerHTML += printme; + popup.innerHTML += "<br><br>#END SLURM.CONF FILE<br>"; + popup.innerHTML += "<a href='javascript:hide_box();'>close</a>"; + + popup.style.visibility = 'visible'; + + // OLD CODE + //document.open(); + //document.write(printme); + //document.close(); } --> </SCRIPT> +<div style='visibility:hidden;text-align:left;background:#ccc;border:1px solid black;position: absolute;left:100;z-index:1;padding:5;' id='out_box'></div> </HEAD> <BODY> <FORM name=config> @@ -774,7 +793,7 @@ before terminating all remaining tasks. A value of zero indicates unlimited wait <BR> <BR> -<input type=submit value="Submit" onClick="javascript:displayfile()"> +<input type=button value="Submit" onClick="javascript:displayfile()"> <input type=reset value="Reset Form"> <P> </FORM> -- GitLab