mirror of
https://github.com/newnius/YAO-portal.git
synced 2025-12-13 00:56:44 +00:00
update, add virtual cluster management
This commit is contained in:
@@ -2,6 +2,9 @@ function register_events_cluster() {
|
||||
$('#btn-cluster-add').click(function (e) {
|
||||
$('#form-cluster-submit-type').val('add');
|
||||
$('#form-cluster-name').removeAttr('disabled');
|
||||
$('#form-cluster-name').val('');
|
||||
$('#form-cluster-weight').val(10);
|
||||
$('#form-cluster-reserved').prop('checked', false);
|
||||
$('#modal-cluster').modal('show');
|
||||
});
|
||||
|
||||
@@ -77,6 +80,16 @@ function load_clusters() {
|
||||
title: 'Name',
|
||||
align: 'center',
|
||||
valign: 'middle'
|
||||
}, {
|
||||
field: 'reserved',
|
||||
title: 'Reserved',
|
||||
align: 'center',
|
||||
valign: 'middle'
|
||||
}, {
|
||||
field: 'weight',
|
||||
title: 'Weight',
|
||||
align: 'center',
|
||||
valign: 'middle'
|
||||
}, {
|
||||
field: 'operate',
|
||||
title: 'Operate',
|
||||
|
||||
Reference in New Issue
Block a user