Changeset 8616 for mauRepo


Ignore:
Timestamp:
09/10/12 14:55:11 (7 years ago)
Author:
gparton
Message:

added in condition statement to cope with lack of DataLineage? in JSON object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/cedaMoles/MolesManager/static/js/cedaObservation.js

    r8615 r8616  
    416416                 
    417417                // lineage                       
    418                                 var dataLineage_id  = new dojo.html.set(dojo.byId("dataLineage_id"),'<p>' + coObs.dataLineage + '</p>'); 
    419                                   
     418                                if coObs.hasOwnProperty('dataLineage'){ 
     419                                         var dataLineage_id  = new dojo.html.set(dojo.byId("dataLineage_id"),'<p>' + coObs.dataLineage + '</p>'); 
     420                                } 
     421                                else { 
     422                                         var dataLineage_id  = new dojo.html.set(dojo.byId("dataLineage_id"),'<p>Data were delivered to CEDA for archival. Contact <a href="mailto:support@ceda.a.cuk">CEDA</a> for further information.</p>'); 
     423                                } 
    420424                        } 
    421425                } 
Note: See TracChangeset for help on using the changeset viewer.