Changeset 22647
- Timestamp:
- 02/09/10 11:24:52 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mnw21/pathquery_refactor/intermine/webapp/main/resources/webapp/js/queryBuilder.js
r22635 r22647 9 9 10 10 function onChangeAttributeOp() { 11 //LIKE or NOT LIKE or LOOKUP 12 if (document.queryBuilderConstraintForm["attributeOp"]!= undefined && document.queryBuilderConstraintForm["attributeOp"] ) { 13 if (document.queryBuilderConstraintForm["attributeOp"].value == '6' 14 || document.queryBuilderConstraintForm["attributeOp"].value == '7' 15 || document.queryBuilderConstraintForm["attributeOp"].value == '18') { 16 document.queryBuilderConstraintForm["attributeValue"].style.display = 'inline'; 17 if (document.queryBuilderConstraintForm["attributeOptions"]) 18 document.queryBuilderConstraintForm["attributeOptions"].style.display = 'none'; 19 if (document.queryBuilderConstraintForm["multiValue"]) 20 document.queryBuilderConstraintForm["multiValue"].style.display = 'none'; 11 //attribute5 operator 12 //attribute6 attribute value 13 //attribute7 options 14 if (document.getElementById("attribute5")) { 15 if (document.getElementById("attribute5").value == '6' 16 || document.getElementById("attribute5").value == '7' 17 || document.getElementById("attribute5").value == '18') { 18 document.getElementById("attribute6").style.display = 'inline'; 19 if (document.getElementById("attribute7")) 20 document.getElementById("attribute7").style.display = 'none'; 21 if (document.getElementById("multiValue")) 22 document.getElementById("multiValue").style.display = 'none'; 21 23 } // IN or NOT IN 22 else if (document. queryBuilderConstraintForm["attributeOp"].value == '12'23 || document. queryBuilderConstraintForm["attributeOp"].value == '13') {24 if (document. queryBuilderConstraintForm["multiValue"])25 document.queryBuilderConstraintForm["multiValue"].style.display = 'inline';26 document.queryBuilderConstraintForm["attributeValue"].style.display = 'none';27 if (document. queryBuilderConstraintForm["attributeOptions"])28 document. queryBuilderConstraintForm["attributeOptions"].style.display = 'none';24 else if (document.getElementById("attribute5").value == '12' 25 || document.getElementById("attribute5").value == '13') { 26 if (document.getElementById("multiValue")) 27 document.getElementById("multiValue").style.display = 'inline'; 28 document.getElementById("attribute6").style.display = 'none'; 29 if (document.getElementById("attribute7")) 30 document.getElementById("attribute7").style.display = 'none'; 29 31 } else { 30 if (document. queryBuilderConstraintForm["attributeOptions"])31 document. queryBuilderConstraintForm["attributeOptions"].style.display = 'inline';32 if (document. queryBuilderConstraintForm["attributeValue"].style != undefined)33 document. queryBuilderConstraintForm["attributeValue"].style.display = 'none';34 if (document. queryBuilderConstraintForm["attributeOptions"]!= undefined)35 document. queryBuilderConstraintForm["attributeValue"].value = document.queryBuilderConstraintForm["attributeOptions"].value;36 if (document. queryBuilderConstraintForm["multiValue"])37 document.queryBuilderConstraintForm["multiValue"].style.display = 'none';32 if (document.getElementById("attribute7")) 33 document.getElementById("attribute7").style.display = 'inline'; 34 if (document.getElementById("attribute6").style != undefined) 35 document.getElementById("attribute6").style.display = 'none'; 36 if (document.getElementById("attribute7") != undefined) 37 document.getElementById("attribute6").value = document.getElementById("attribute7").value; 38 if (document.getElementById("multiValue")) 39 document.getElementById("multiValue").style.display = 'none'; 38 40 } 39 41 } 40 }42 } 41 43 42 44 function updateMultiValueAttribute() {
Note: See TracChangeset
for help on using the changeset viewer.
