Changeset 5965


Ignore:
Timestamp:
04/11/09 09:51:55 (10 years ago)
Author:
pnorton
Message:

Fixed a problem with the WCS download control getting the wrong dimension names from the dimension control.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cowsclient/trunk/cowsclient/public/js/layerDimensions.js

    r5878 r5965  
    145145                 
    146146                if (element.name !== null) { 
     147                     
     148                    var elementName = element.name; 
     149                    if (elementName.substr(0,7) == 'selected_') { 
     150                        elementName = elementName.substr(7) 
     151                    } 
    147152                    // get rid of the 'selected_' from the start of the element name 
    148                         dims[element.name.substr(7)] = element.value; 
     153                     
     154                        dims[elementName] = element.value; 
    149155                } 
    150156        } 
Note: See TracChangeset for help on using the changeset viewer.