Ignore:
Timestamp:
14/12/09 15:18:14 (10 years ago)
Author:
pnorton
Message:

Made several changes to try and reduce the amount of data to download on the wmsviz page. Also created a single place where the js files for the wmsviz page are listed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cowsclient/trunk/cowsclient/templates/wmsviz.html

    r6038 r6119  
    3636 
    3737<link rel="stylesheet" type="text/css" href="$g.server/js/yui_2.7.0b/button/assets/skins/sam/button.css" /> 
    38 <link rel="stylesheet" type="text/css" href="$g.server/js/yui_2.7.0b/autocomplete/assets/skins/sam/autocomplete.css" /> 
    3938 
    4039<!-- Dependency source files -->   
     
    5352    <script type="text/javascript" src="$g.server/js/yui_2.7.0b/utilities/utilities.js" ></script> 
    5453    <script type="text/javascript" src="$g.server/js/yui_2.7.0b/dragdrop/dragdrop.js" ></script> 
    55      
    56     <!-- YUI autocomplete --> 
    57     <script type="text/javascript" src="$g.server/js/yui_2.7.0b/animation/animation.js"></script> 
    58     <script type="text/javascript" src="$g.server/js/yui_2.7.0b/element/element.js"></script> 
    59     <script type="text/javascript" src="$g.server/js/yui_2.7.0b/button/button.js"></script> 
    60     <script type="text/javascript" src="$g.server/js/yui_2.7.0b/datasource/datasource.js"></script> 
    61     <script type="text/javascript" src="$g.server/js/yui_2.7.0b/autocomplete/autocomplete.js"></script> 
    6254   
    6355  </py:when> 
     
    7365    <script type="text/javascript" src="$g.server/js/yui_2.7.0b/utilities/utilities.js" ></script> 
    7466    <script type="text/javascript" src="$g.server/js/yui_2.7.0b/dragdrop/dragdrop-min.js" ></script> 
    75      
    76     <!-- YUI autocomplete --> 
    77     <script type="text/javascript" src="$g.server/js/yui_2.7.0b/animation/animation-min.js"></script> 
    78     <script type="text/javascript" src="$g.server/js/yui_2.7.0b/element/element-min.js"></script> 
    79     <script type="text/javascript" src="$g.server/js/yui_2.7.0b/button/button-min.js"></script> 
    80     <script type="text/javascript" src="$g.server/js/yui_2.7.0b/datasource/datasource-min.js"></script> 
    81     <script type="text/javascript" src="$g.server/js/yui_2.7.0b/autocomplete/autocomplete-min.js"></script>   
    8267   
    8368  </py:otherwise> 
     
    9176<link type="text/css" rel="stylesheet" href="$g.server/layout/drag_drop_style.css"/> 
    9277<link type="text/css" rel="stylesheet" href="$g.server/layout/control.css"/> 
    93 <link rel="stylesheet" type="text/css" href="$g.server/layout/bottom_controls.css" /> 
    9478<link rel="stylesheet" type="text/css" href="$g.server/layout/layer_properties.css" /> 
    95 <link rel="stylesheet" type="text/css" href="$g.server/layout/yui_autocomplete.css" /> 
    96  
    9779 
    9880<script type="text/javascript" src="$g.server/js/json2.js"></script> 
     
    10688<!-- BEGIN: WMSC library --> 
    10789<?python 
    108     javascript_files = ['wmsc.js', 
    109                         'utils.js', 
    110                         'endpoint.js', 
    111                         'furtherInfoLink.js', 
    112                         'displayOptionsRetriever.js', 
    113                         'mapControl.js', 
    114                         'layerControl.js', 
    115                         'capabilities.js', 
    116                         'wcs.js', 
    117                         'layerFigureDownload.js', 
    118                         'layerInformation.js', 
    119                         'layerList.js', 
    120                         'layerDisplayOptions.js', 
    121                         'splitAxisConfig.js', 
    122                         'splitAxisSelect.js', 
    123                         'endpointSelection.js', 
    124                         'ajaxRetriever.js', 
    125                         'axisConfigRetriever.js', 
    126                         'layerDimensions.js', 
    127                         'layerParameters.js', 
    128                         'figureBuilder.js', 
    129                         'legendContainer.js', 
    130                         'boundsControl.js', 
    131                         'wmcRetriever.js', 
    132                         'layerDefaultSetter.js', 
    133                         'outlineControl.js'] 
     90    from cowsclient.lib.js_files_list import getJSFilesForPage 
     91    javascript_files = getJSFilesForPage('wmsviz') 
    13492?> 
    13593 
Note: See TracChangeset for help on using the changeset viewer.