Commit aa8bb402f369025d7e2a408504096fb6d5213368

Authored by Elena.Budnik
1 parent 7e7933a4

new icon, target : sun

generic_data/rank.json
1   -{"Mercury": 1, "Venus": 2, "Heliosphere.NearEarth": 3, "Heliosphere.Remote1AU": 4,
2   -"Earth.Magnetosheath": 5, "Earth.Magnetosphere": 5, "Earth": 5, "Earth.Surface": 6,
3   -"Mars": 7, "Jupiter": 8, "Ganymede" : 8, "Saturn": 9, "Uranus" : 10, "Neptune" : 11, "Comet" : 93,
  1 +{"Sun" : 1, "Mercury": 2, "Venus": 3, "Heliosphere.NearEarth": 4, "Heliosphere.Remote1AU": 5,
  2 +"Earth.Magnetosheath": 6, "Earth.Magnetosphere": 6, "Earth": 6, "Earth.Surface": 7,
  3 +"Mars": 8, "Jupiter": 9, "Ganymede" : 9, "Saturn": 91, "Uranus" : 92, "Neptune" : 93, "Comet" : 94,
4 4 "Heliosphere" : 99 }
5 5 \ No newline at end of file
... ...
js/app/models/LocalParamNode.js
... ... @@ -28,9 +28,9 @@ Ext.define('amdaModel.LocalParamNode',
28 28 {name: 'rank', type: 'integer', persist: false, defaultValue: null}
29 29 ],
30 30  
31   - icons : {'1' : 'icon-mercury','2' : 'icon-venus','3' : 'icon-sw','4' : 'icon-sw','5' : 'icon-earth','6' : 'icon-earth',
32   - '7' : 'icon-mars','8' : 'icon-jupiter','9' : 'icon-saturn','10' : 'icon-uranus','11' : 'icon-neptune',
33   - '93' :'icon-comet', '99' :'icon-solarsystem', '999' :'icon-solarsystem'
  31 + icons : {'1' : 'icon-sun', '2' : 'icon-mercury','3' : 'icon-venus','4' : 'icon-sw','5' : 'icon-sw','6' : 'icon-earth','7' : 'icon-earth',
  32 + '8' : 'icon-mars','9' : 'icon-jupiter','91' : 'icon-saturn','92' : 'icon-uranus','93' : 'icon-neptune',
  33 + '94' :'icon-comet', '99' :'icon-solarsystem', '999' :'icon-solarsystem'
34 34 },
35 35  
36 36 constructor : function(config)
... ...
js/app/views/ExplorerUI.js
... ... @@ -232,7 +232,7 @@ Ext.define('amdaUI.ExplorerUI', {
232 232 toggleGroup: 'sorting',
233 233 handler: function(){
234 234 var tree = Ext.getCmp(amdaUI.ExplorerUI.RESRC_TAB.TREE_ID);
235   - tree.getStore().sort([{ property : 'rank' }]);
  235 + tree.getStore().sort('rank');
236 236 this.updateFilter();
237 237 }
238 238 }]
... ...
js/resources/css/amda.css
... ... @@ -354,6 +354,12 @@ background-image: url(../images/16x16/error.png) !important;
354 354 opacity:0.5 !important;
355 355 }
356 356  
  357 +.icon-sun {
  358 + background-image:url(../images/icons/sun.png) !important;
  359 + background-position: center;
  360 + background-repeat: no-repeat;
  361 +}
  362 +
357 363 .icon-mercury {
358 364 background-image:url(../images/icons/mercury.png) !important;
359 365 background-position: center;
... ...