mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
cloudstack 3.0 UI - network page, infrastructure page - guest network - restart network action - Hide "clean up" checkbox if it's Basic zone. Show "clean up" checkbox if it's Advanced zone.
This commit is contained in:
parent
b46a2340be
commit
ad74b396dc
@ -451,17 +451,17 @@
|
||||
});
|
||||
if(zoneObj.networktype == "Basic") {
|
||||
args.$form.find('.form-item[rel=cleanup]').find('input').removeAttr('checked'); //unchecked
|
||||
args.$form.find('.form-item[rel=cleanup]').find('input').attr('Disabled', true); //gray-out
|
||||
args.$form.find('.form-item[rel=cleanup]').hide(); //hidden
|
||||
}
|
||||
else {
|
||||
args.$form.find('.form-item[rel=cleanup]').find('input').attr('checked', 'checked'); //checked
|
||||
args.$form.find('.form-item[rel=cleanup]').find('input').removeAttr('Disabled'); //enabled
|
||||
args.$form.find('.form-item[rel=cleanup]').css('display', 'inline-block'); //shown
|
||||
}
|
||||
},
|
||||
fields: {
|
||||
cleanup: {
|
||||
label: 'label.clean.up',
|
||||
isBoolean: true
|
||||
isBoolean: true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -1444,11 +1444,11 @@
|
||||
preFilter: function(args) {
|
||||
if(selectedZoneObj.networktype == "Basic") {
|
||||
args.$form.find('.form-item[rel=cleanup]').find('input').removeAttr('checked'); //unchecked
|
||||
args.$form.find('.form-item[rel=cleanup]').find('input').attr('Disabled', true); //gray-out
|
||||
args.$form.find('.form-item[rel=cleanup]').hide(); //hidden
|
||||
}
|
||||
else {
|
||||
args.$form.find('.form-item[rel=cleanup]').find('input').attr('checked', 'checked'); //checked
|
||||
args.$form.find('.form-item[rel=cleanup]').find('input').removeAttr('Disabled'); //enabled
|
||||
args.$form.find('.form-item[rel=cleanup]').css('display', 'inline-block'); //shown
|
||||
}
|
||||
},
|
||||
fields: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user