Commit d0e2d802 authored by jlopez's avatar jlopez
Browse files

Fix #14

parent 5a75029d
Pipeline #181 failed with stages
in 3 minutes and 19 seconds
...@@ -5,13 +5,14 @@ var PREVIEW = ""; ...@@ -5,13 +5,14 @@ var PREVIEW = "";
$( "#generateButton" ).click(function() { $( "#generateButton" ).click(function() {
if((SELECTED_PACKAGES["CRAN"].length > 0 || SELECTED_PACKAGES["Bioconductor"].length > 0 ) && document.getElementById("selectedR").value == 0) { var valid = true;
alert("Please choose R version");
} if(SELECTED_PACKAGES["Python"].length > 0 && document.getElementById("selectedPython").value == 0) {
else if(SELECTED_PACKAGES["Python"].length > 0 && document.getElementById("selectedPython").value == 0) {
alert("Please choose Python version"); alert("Please choose Python version");
valid = false;
} }
else {
if(valid) {
var preview = generate_container(); var preview = generate_container();
$("#containerPreview").text(PREVIEW); $("#containerPreview").text(PREVIEW);
} }
......
...@@ -283,8 +283,8 @@ foreach ($db->getAllActiveSectionParent() as $s){ ...@@ -283,8 +283,8 @@ foreach ($db->getAllActiveSectionParent() as $s){
<label for="selectedR" class="font-weight-bold">R version :</label> <label for="selectedR" class="font-weight-bold">R version :</label>
<select class="custom-select" id="selectedR"> <select class="custom-select" id="selectedR">
<option value="0" selected="selected">None</option> <option value="0" >None</option>
<option value="3.5" >3.5</option> <option value="3.5" selected="selected">3.5</option>
</select> </select>
</div> </div>
...@@ -525,7 +525,7 @@ foreach ($db->getAllActiveSectionParent() as $s){ ...@@ -525,7 +525,7 @@ foreach ($db->getAllActiveSectionParent() as $s){
SELECTED_PACKAGES["Distribution"] = []; SELECTED_PACKAGES["Distribution"] = [];
document.getElementById("containDistributionPackages").innerHTML = ''; //document.getElementById("containDistributionPackages").innerHTML = '';
gestionPackageSelected(); gestionPackageSelected();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment