robert.elder commited on
Commit
13c99e1
·
1 Parent(s): 114b086

removing space from Identifier input box

Browse files
color2_module/templates/color2_index.html CHANGED
@@ -39,7 +39,7 @@ Identity: <select name="CA" id="CA" onchange="javascript:caCheck();">
39
  <option value="SMILES" >SMILES</option>
40
  <option value="common" >Common name</option>
41
  </select>
42
- Identifier: <input name="chemName" id="chemName" type="text" value="" required>
43
  </span> <br>
44
 
45
  Amount (mg): <input name="amount" id="amount" value="1.0" step="any" min="0.000001" type="number" required> <br>
@@ -58,8 +58,10 @@ function caCheck() {
58
  if (iCA >= 11) {
59
  document.getElementById('otherID').style.display = "inline";
60
  document.getElementById('chemName').value = "";
 
61
  } else {
62
  document.getElementById('otherID').style.display = "none";
 
63
  }
64
  }
65
 
 
39
  <option value="SMILES" >SMILES</option>
40
  <option value="common" >Common name</option>
41
  </select>
42
+ Identifier: <input name="chemName" id="chemName" type="text" value="">
43
  </span> <br>
44
 
45
  Amount (mg): <input name="amount" id="amount" value="1.0" step="any" min="0.000001" type="number" required> <br>
 
58
  if (iCA >= 11) {
59
  document.getElementById('otherID').style.display = "inline";
60
  document.getElementById('chemName').value = "";
61
+ document.getElementById('chemName').required = true;
62
  } else {
63
  document.getElementById('otherID').style.display = "none";
64
+ document.getElementById('chemName').required = false;
65
  }
66
  }
67