File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2277,6 +2277,34 @@ div.detail-group.actions td {
22772277 top : 13px ;
22782278}
22792279
2280+ /** Zone filter (mixed zone management)*/
2281+ # header . zone-filter {
2282+ float : left;
2283+ width : 111px ;
2284+ margin : 9px 20px 0 2px ;
2285+ }
2286+
2287+ # header . zone-filter label {
2288+ position : absolute;
2289+ top : -3px ;
2290+ color : # FFFFFF;
2291+ font-size : 11px ;
2292+ }
2293+
2294+ # header . zone-filter select {
2295+ width : 100% ;
2296+ font-size : 12px ;
2297+ border : 1px solid # 000000;
2298+ border-bottom : # FFFFFF;
2299+ /*+border-radius:4px;*/
2300+ -moz-border-radius : 4px ;
2301+ -webkit-border-radius : 4px ;
2302+ -khtml-border-radius : 4px ;
2303+ border-radius : 4px ;
2304+ background : # ECECEC;
2305+ margin-top : 2px ;
2306+ }
2307+
22802308/*Navigation*/
22812309# navigation ,
22822310# browser {
@@ -8930,6 +8958,8 @@ div.ui-dialog div.multi-edit-add-list div.view div.data-table table.body tbody t
89308958 -webkit-border-radius : 4px ;
89318959 -khtml-border-radius : 4px ;
89328960 border-radius : 4px ;
8961+ background : # ECECEC;
8962+ margin-top : 2px ;
89338963}
89348964
89358965/*** Select project*/
Original file line number Diff line number Diff line change @@ -1659,7 +1659,6 @@ under the License.
16591659 <script type =" text/javascript" src =" scripts/events.js?t=<%= now % >" ></script >
16601660 <script type =" text/javascript" src =" scripts/regions.js?t=<%= now % >" ></script >
16611661 <script type =" text/javascript" src =" scripts/ui-custom/regions.js?t=<%= now % >" ></script >
1662- <script type =" text/javascript" src =" scripts/ui-custom/zoneFilter.js?t=<%= now % >" ></script >
16631662 <script type =" text/javascript" src =" scripts/ui-custom/ipRules.js?t=<%= now % >" ></script >
16641663 <script type =" text/javascript" src =" scripts/ui-custom/enableStaticNAT.js?t=<%= now % >" ></script >
16651664 <script type =" text/javascript" src =" scripts/ui-custom/securityRules.js?t=<%= now % >" ></script >
@@ -1681,6 +1680,7 @@ under the License.
16811680 <script type =" text/javascript" src =" scripts/docs.js?t=<%= now % >" ></script >
16821681 <script type =" text/javascript" src =" scripts/vm_snapshots.js?t=<%= now % >" ></script >
16831682 <script type =" text/javascript" src =" scripts/ui-custom/projectSelect.js?t=<%= now % >" ></script >
1683+ <script type =" text/javascript" src =" scripts/ui-custom/zoneFilter.js?t=<%= now % >" ></script >
16841684
16851685 <!-- Plugins -->
16861686 <script type =" text/javascript" src =" scripts/ui-custom/plugins.js?t=<%= now % >" ></script >
Original file line number Diff line number Diff line change 2020 var $header = $ ( '#header .controls' ) ;
2121 var $zoneFilter = $ ( '<div>' ) . addClass ( 'zone-filter' ) ;
2222 var $zoneTypeSelect = $ ( '<select>' ) . append (
23- $ ( '<option>' ) . attr ( 'value' , 'basic' ) . html ( _l ( 'Basic' ) ) ,
24- $ ( '<option>' ) . attr ( 'value' , 'advanced' ) . html ( _l ( 'Advanced' ) )
23+ $ ( '<option>' ) . attr ( 'value' , '' ) . html ( _l ( 'All zones' ) ) ,
24+ $ ( '<option>' ) . attr ( 'value' , 'Basic' ) . html ( _l ( 'Basic' ) ) ,
25+ $ ( '<option>' ) . attr ( 'value' , 'Advanced' ) . html ( _l ( 'Advanced' ) )
2526 ) ;
27+ var $label = $ ( '<label>' ) . html ( 'Zone type:' ) ;
2628
27- $zoneTypeSelect . appendTo ( $zoneFilter ) ;
28- $zoneFilter . insertAfter ( $header . find ( '#user' ) ) ;
29+ $zoneFilter . append ( $label , $zoneTypeSelect ) ;
30+ $zoneFilter . insertAfter ( $header . find ( '.project-switcher' ) ) ;
31+ $zoneTypeSelect . change ( function ( ) {
32+ cloudStack . context . zoneType = $zoneTypeSelect . val ( ) ;
33+
34+ // Go to default/start page (dashboard)
35+ $ ( '#breadcrumbs .home' ) . click ( ) ;
36+ } ) ;
2937 } ) ;
3038} ( jQuery , cloudStack ) ) ;
3139
You can’t perform that action at this time.
0 commit comments