Changeset 22692


Ignore:
Timestamp:
03/09/10 12:29:52 (17 months ago)
Author:
dbutano
Message:

Fixed following bug: if a field doesn't have possibleValue the input test is not displayed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/mnw21/pathquery_refactor/intermine/webapp/main/resources/webapp/js/queryBuilder.js

    r22649 r22692  
    3232                      document.getElementById("attribute7").style.display = 'none'; 
    3333              } else { 
    34                 if (document.getElementById("attribute7"))  
     34                if (document.getElementById("attribute7")) { 
    3535                    document.getElementById("attribute7").style.display = 'inline'; 
    36                   if (document.getElementById("attribute6").style != undefined) 
    37                       document.getElementById("attribute6").style.display = 'none'; 
    38                   if (document.getElementById("attribute7") != undefined) 
    39                       document.getElementById("attribute6").value = document.getElementById("attribute7").value; 
    40                   if (document.getElementById("multiValue"))  
    41                       document.getElementById("multiValue").style.display = 'none'; 
     36                    if (document.getElementById("attribute6").style != undefined) 
     37                        document.getElementById("attribute6").style.display = 'none'; 
     38                    if (document.getElementById("attribute7") != undefined) 
     39                        document.getElementById("attribute6").value = document.getElementById("attribute7").value; 
     40                } else { 
     41                    if (document.getElementById("attribute6").style != undefined) 
     42                        document.getElementById("attribute6").style.display = 'inline'; 
     43                } 
     44                 if (document.getElementById("multiValue"))  
     45                   document.getElementById("multiValue").style.display = 'none'; 
    4246              }  
    4347        } 
Note: See TracChangeset for help on using the changeset viewer.