@@ -238,7 +238,7 @@ function stylePreview() {
238
238
title="Script Name" data-content="In this field you can insert a name for your script. Remember that if there is already a script with the same name in your home folder, it'll be overwritten.<br /> Interface automatically adds .pbs extension"
239
239
data-html="true" data-container="body">Script Name</a>
240
240
<input class="input-block-level input-xlarge" id="scriptname appendPrependInput"
241
- type="text" name="scriptname" placeholder="Insert script name" />
241
+ type="text" name="scriptname" placeholder="Insert script name" form="form-submit-script" />
242
242
<span class="add-on">.pbs</span>
243
243
</div>
244
244
</div>
@@ -253,7 +253,7 @@ function stylePreview() {
253
253
<a id="jobname_ee" href="#" data-toggle="popover" data-title="Error"
254
254
data-content="Use only a-z, 0-9, - and _" data-trigger="manual" data-container="body">
255
255
<input class="input-block-level input-xlarge" id="jobname prependInput" type="text"
256
- name="jobname" placeholder="Insert job name" onkeypress="compose();"/>
256
+ name="jobname" placeholder="Insert job name" onkeypress="compose();" onchange="compose();" />
257
257
</a>
258
258
</div>
259
259
</div>
@@ -596,7 +596,7 @@ function stylePreview() {
596
596
</fieldset>
597
597
</form>
598
598
599
- <form class="form-actions" method="POST" action="submit_run.php">
599
+ <form class="form-actions" method="POST" action="submit_run.php" onSubmit="return popWindow(this.target)" target="Details" id="form-submit-script" >
600
600
<input id="result_script" type="text" name="result_script" style="display:none;">
601
601
<p align="right">
602
602
<button type="submit" class="btn btn-primary btn-large"><i class="icon-download-alt icon-white" ></i> Save and submit PBS script</button>
@@ -607,7 +607,7 @@ function stylePreview() {
607
607
<div id="envvars-modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
608
608
<div class="modal-header">
609
609
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
610
- <h3 id="myModalLabel">EnvVariables </h3>
610
+ <h3 id="myModalLabel">List variables </h3>
611
611
</div>
612
612
<div class="modal-body">
613
613
<p>
@@ -718,4 +718,14 @@ function stylePreview() {
718
718
TODO
719
719
* Require GPUS sostituire la textbox con una checkbox!
720
720
-->
721
- <script> compose(); </script>
721
+ <script>
722
+
723
+ compose();
724
+
725
+ function popWindow(wName){
726
+ features = 'width=400,height=400,toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,copyhistory=no';
727
+ pop = window.open('',wName,features);
728
+ if(pop.focus){ pop.focus(); }
729
+ return true;
730
+ }
731
+ </script>
0 commit comments