Changes between Version 28 and Version 29 of PageTemplates/Workplan/Form
- Timestamp:
- 2018-11-07T22:13:57+01:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PageTemplates/Workplan/Form
v28 v29 24 24 <option value="HPC" >HPC </option> 25 25 <option value="KERNEL" >Kernel </option> 26 <option value="PUB S">Publications </option>26 <option value="PUBLI" >Publications </option> 27 27 <option value="SI3" >SI3 </option> 28 28 <option value="TOP" >TOP </option> … … 36 36 <th>Number</th> 37 37 <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> 40 40 </td> 41 41 </tr> … … 94 94 // Auto-generated numbers sequence for select input 95 95 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"); 97 97 select.options.add(option); 98 98 option.text = i; option.value = padWithZeroes(i.toString(), 2); … … 101 101 // Build the real action name by concatenating the form inputs 102 102 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; 105 105 $("#name_preview").text(action_name); $("#summary").val(action_name); 106 106 } … … 108 108 // Update name preview as typing 109 109 $("#suffix").keyup (function() { val(); }); 110 111 function resetForm(){ setTimeout(function(){ val(); }, 50); }112 110 113 111 // Set wiki page name on the fly