Changeset 5645 for cowsclient


Ignore:
Timestamp:
20/08/09 12:03:36 (10 years ago)
Author:
pnorton
Message:

Improved the labels on the GetFigure? format selection for pdf/ps and svg outputs.

File:
1 edited

Legend:

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

    r5626 r5645  
    171171            formatValues.push(formatList[i]); 
    172172             
    173             if (formatList[i].indexOf('image/') == 0) { 
     173            if (formatList[i] == 'image/svg+xml') { 
     174                formatDescriptions.push('SVG'); 
     175            } 
     176            else if (formatList[i].indexOf('image/') == 0) { 
    174177                formatDescriptions.push(formatList[i].slice(6, formatList[i].length).toUpperCase()); 
    175178            } 
     179            else if (formatList[i] == 'application/postscript') { 
     180                formatDescriptions.push('PS'); 
     181            } 
     182            else if (formatList[i] == 'application/pdf') { 
     183                formatDescriptions.push('PDF'); 
     184            }             
    176185            else { 
    177186                formatDescriptions.push(formatList[i]); 
Note: See TracChangeset for help on using the changeset viewer.