Changeset 22690


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

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

File:
1 edited

Legend:

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

    r22678 r22690  
    209209                    document.templateForm["attributeOptions(" + index + ")"].style.display = 'none'; 
    210210            } else { 
    211                 if (document.templateForm["attributeOptions(" + index + ")"])  
     211                if (document.templateForm["attributeOptions(" + index + ")"]) { 
    212212                    document.templateForm["attributeOptions(" + index + ")"].style.display = 'inline'; 
    213                 if (document.templateForm["attributeValues(" + index + ")"]) { 
    214                     if (document.templateForm["attributeValues(" + index + ")"].style != undefined) 
    215                         document.templateForm["attributeValues(" + index + ")"].style.display = 'none'; 
    216                     if (document.templateForm["attributeOptions(" + index + ")"] != undefined) 
    217                         document.templateForm["attributeValues(" + index + ")"].value = document.templateForm["attributeOptions(" 
    218                                                                                                       + index + ")"].value; 
     213                    if (document.templateForm["attributeValues(" + index + ")"]) { 
     214                        if (document.templateForm["attributeValues(" + index + ")"].style != undefined) 
     215                            document.templateForm["attributeValues(" + index + ")"].style.display = 'none'; 
     216                        if (document.templateForm["attributeOptions(" + index + ")"] != undefined) 
     217                            document.templateForm["attributeValues(" + index + ")"].value = document.templateForm["attributeOptions(" 
     218                                                                                                          + index + ")"].value; 
     219                    } 
     220                } else { 
     221                    if (document.templateForm["attributeValues(" + index + ")"]) { 
     222                        if (document.templateForm["attributeValues(" + index + ")"].style != undefined) 
     223                            document.templateForm["attributeValues(" + index + ")"].style.display = 'inline'; 
     224                    } 
    219225                } 
    220226                if (document.templateForm["multiValues(" + index + ")"])  
Note: See TracChangeset for help on using the changeset viewer.