File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727
2828 args . response . success ( {
2929 data : regions ? regions : [
30- { id : - 1 , name : '(Default region )' }
30+ { id : - 1 , name : '(Default)' }
3131 ] ,
3232 activeRegionID : cloudStack . context . users . regionid ?
3333 cloudStack . context . users . regionid : 1
Original file line number Diff line number Diff line change 3131
3232 $ ( data ) . each ( function ( ) {
3333 var region = this ;
34+ var regionName = region . name ;
3435 var $li = $ ( '<li>' ) . append ( $ ( '<span>' ) . html ( _s ( region . name ) ) ) ;
3536
3637 $li . data ( 'region-data' , region ) ;
3738
3839 if ( region . id == activeRegionID ) {
3940 $li . addClass ( 'active' ) ;
40-
41- $regionSwitcherButton . find ( '.title' )
42- . html ( _s ( region . name ) )
43- . attr ( 'title' , _s ( region . name ) ) ;
4441 }
4542
43+ $regionSwitcherButton . find ( '.title' )
44+ . html ( regionName )
45+ . attr ( 'title' , regionName ) ;
46+
4647 $regionList . append ( $li ) ;
4748 } ) ;
4849 }
You can’t perform that action at this time.
0 commit comments