Changeset 22678


Ignore:
Timestamp:
03/09/10 10:14:06 (17 months ago)
Author:
dbutano
Message:

Fixed a javascript "is undefined " exception

File:
1 edited

Legend:

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

    r22634 r22678  
    44function clickUseBag(index) { 
    55    var useBag = document.templateForm["useBagConstraint("+index+")"].checked; 
    6     document.templateForm["attributeOps("+index+")"].disabled=useBag; 
     6    if (document.templateForm["attributeOps("+index+")"] && document.templateForm["attributeOps("+index+")"] != undefined) 
     7        document.templateForm["attributeOps("+index+")"].disabled=useBag; 
    78    if (document.templateForm["attributeOptions("+index+")"]) { 
    89        document.templateForm["attributeOptions("+index+")"].disabled=useBag; 
Note: See TracChangeset for help on using the changeset viewer.