New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
PageTemplates/Workplan/Form (diff) – NEMO

Changes between Version 28 and Version 29 of PageTemplates/Workplan/Form


Ignore:
Timestamp:
2018-11-07T22:13:57+01:00 (5 years ago)
Author:
nemo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PageTemplates/Workplan/Form

    v28 v29  
    2424                      <option value="HPC"    >HPC                       </option> 
    2525                      <option value="KERNEL" >Kernel                    </option> 
    26                       <option value="PUBS"   >Publications              </option> 
     26                      <option value="PUBLI"  >Publications              </option> 
    2727                      <option value="SI3"    >SI3                       </option> 
    2828                      <option value="TOP"    >TOP                       </option> 
     
    3636                <th>Number</th> 
    3737                <td> 
    38                   <select id="increment" onchange="val()"></select> 
    39                   <span class="hint">Incremental, check free nb above</span> 
     38                  <select id="nb" onchange="val()"></select> 
     39                  <span class="hint">incremental, check free nb above</span> 
    4040                </td> 
    4141              </tr> 
     
    9494  // Auto-generated numbers sequence for select input 
    9595  for(var i=1; i<=20; i++){ 
    96     var select = document.getElementById("increment"); var option = document.createElement("option"); 
     96    var select = document.getElementById("nb"); var option = document.createElement("option"); 
    9797    select.options.add(option); 
    9898    option.text = i; option.value = padWithZeroes(i.toString(), 2); 
     
    101101  // Build the real action name by concatenating the form inputs 
    102102  function val() { 
    103     var realm = $("#realm").val(); var inc = $("#increment").val(); var suffix = $("#suffix").val(); 
    104     action_name = realm + '-' + inc + '_' + suffix; 
     103    var realm = $("#realm").val(); var nb = $("#nb").val(); var suffix = $("#suffix").val(); 
     104    action_name = realm + '-' + nb + '_' + suffix; 
    105105    $("#name_preview").text(action_name); $("#summary").val(action_name); 
    106106  } 
     
    108108  // Update name preview as typing 
    109109  $("#suffix").keyup (function() { val(); }); 
    110  
    111   function resetForm(){ setTimeout(function(){ val(); }, 50); } 
    112110 
    113111  // Set wiki page name on the fly