File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22632263 if ( isAdmin ( ) ) {
22642264 hiddenFields = [ ] ;
22652265 } else {
2266- hiddenFields = [ "hypervisor" , 'xenserverToolsVersion61plus' ] ;
2266+ hiddenFields = [ "hypervisor" ] ;
22672267 }
22682268
22692269 if ( 'instances' in args . context && args . context . instances [ 0 ] . hypervisor != 'XenServer' ) {
23812381 xenserverToolsVersion61plus : {
23822382 label : 'label.Xenserver.Tools.Version61plus' ,
23832383 isBoolean : true ,
2384- isEditable : function ( ) {
2385- if ( isAdmin ( ) )
2386- return true ;
2387- else
2388- return false ;
2389- } ,
2384+ isEditable : true ,
23902385 converter : cloudStack . converters . toBooleanText
23912386 } ,
23922387
Original file line number Diff line number Diff line change @@ -932,7 +932,6 @@ cloudStack.preFilter = {
932932 args . $form . find ( '.form-item[rel=isPublic]' ) . hide ( ) ;
933933 }
934934 args . $form . find ( '.form-item[rel=isFeatured]' ) . hide ( ) ;
935- args . $form . find ( '.form-item[rel=xenserverToolsVersion61plus]' ) . hide ( ) ;
936935 }
937936 } ,
938937 addLoadBalancerDevice : function ( args ) { //add netscaler device OR add F5 device
Original file line number Diff line number Diff line change 12891289 desc : '' ,
12901290 preFilter : function ( args ) {
12911291 if ( args . context . volumes [ 0 ] . hypervisor == "XenServer" ) {
1292- if ( isAdmin ( ) ) {
1293- args . $form . find ( '.form-item[rel=xenserverToolsVersion61plus]' ) . css ( 'display' , 'inline-block' ) ;
1294- }
1292+ args . $form . find ( '.form-item[rel=xenserverToolsVersion61plus]' ) . css ( 'display' , 'inline-block' ) ;
1293+
12951294 }
12961295 } ,
12971296 fields : {
Original file line number Diff line number Diff line change 252252 $form . find ( '.form-item[rel=keyboardType]' ) . hide ( ) ;
253253 $form . find ( '.form-item[rel=xenserverToolsVersion61plus]' ) . hide ( ) ;
254254 $form . find ( '.form-item[rel=rootDiskControllerTypeKVM]' ) . css ( 'display' , 'inline-block' ) ;
255-
255+ $form . find ( '.form-item[rel=xenserverToolsVersion61plus]' ) . css ( 'display' , 'inline-block' ) ;
256256 } else {
257257 $form . find ( '.form-item[rel=rootDiskControllerType]' ) . hide ( ) ;
258258 $form . find ( '.form-item[rel=nicAdapterType]' ) . hide ( ) ;
259259 $form . find ( '.form-item[rel=keyboardType]' ) . hide ( ) ;
260-
261260 $form . find ( '.form-item[rel=xenserverToolsVersion61plus]' ) . hide ( ) ;
262261 $form . find ( '.form-item[rel=rootDiskControllerTypeKVM]' ) . hide ( ) ;
263262 }
279278 label : 'label.xenserver.tools.version.61.plus' ,
280279 isBoolean : true ,
281280 isChecked : function ( args ) {
282- var b = false ;
281+ var b = true ;
283282 if ( isAdmin ( ) ) {
284283 $ . ajax ( {
285284 url : createURL ( 'listConfigurations' ) ,
288287 } ,
289288 async : false ,
290289 success : function ( json ) {
291- if ( json . listconfigurationsresponse . configuration != null && json . listconfigurationsresponse . configuration [ 0 ] . value = = 'xenserver61' ) {
292- b = true ;
290+ if ( json . listconfigurationsresponse . configuration != null && json . listconfigurationsresponse . configuration [ 0 ] . value ! = 'xenserver61' ) {
291+ b = false ;
293292 }
294293 }
295294 } ) ;
You can’t perform that action at this time.
0 commit comments