Changeset 2896


Ignore:
Timestamp:
18/09/07 15:53:47 (12 years ago)
Author:
spascoe
Message:

Time constraint works, although with the CSML currently in eXist only
the first 12 time points of IPCC observation climatology are visible
(known bug #875).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/public/js/VisMapBox.js

    r2888 r2896  
    241241        } 
    242242    }, 
     243    getSelectedGranuleId: function() { 
     244        var granuleForm = $(this.granuleFormId); 
     245        for (var i=0; i<granuleForm.elements.length; i++) { 
     246            if (granuleForm.elements[i].name != 'dataset') { 
     247                continue; 
     248            } 
     249            if (granuleForm.elements[i].checked) { 
     250                return granuleForm.elements[i].value; 
     251            } 
     252        } 
     253    }, 
    243254    updateVisApp: function() { 
    244         var granuleId = $(this.granuleFormId).dataset.value; 
     255        var granuleId = this.getSelectedGranuleId(); 
    245256        var featureId = this.getSelectedFeatureId(); 
    246257        var domain = {'TIME': $(this.domainFormId)['time'].value}; 
     
    253264 
    254265        // Iterate over domain fields 
    255         var granuleId = $(this.granuleFormId).dataset.value; 
     266        var granuleId = this.getSelectedGranuleId() 
    256267        var featureId = this.getSelectedFeatureId(); 
    257268        var domainForm = $(this.domainFormId); 
Note: See TracChangeset for help on using the changeset viewer.