diff --git a/templates/jasset/host_add.html b/templates/jasset/host_add.html index 24ee3a98e..dc862a315 100644 --- a/templates/jasset/host_add.html +++ b/templates/jasset/host_add.html @@ -164,10 +164,10 @@ $('#assetForm').validator({ msg: {required: "必须填写!"} }, "j_group": { - rule: "required", + rule: "checked", tip: "选择业务组", ok: "", - msg: {required: "至少选择一个组"} + msg: {checked: "至少选择一个组"} }, "j_user": { rule: "required(type_m)", diff --git a/templates/jasset/host_edit.html b/templates/jasset/host_edit.html index 0d70ccd77..d3a3f2f00 100644 --- a/templates/jasset/host_edit.html +++ b/templates/jasset/host_edit.html @@ -175,10 +175,10 @@ $('#assetForm').validator({ msg: {required: "必须填写!"} }, "j_group": { - rule: "required", + rule: "checked", tip: "选择业务组", ok: "", - msg: {required: "至少选择一个组"} + msg: {checked: "至少选择一个组"} }, "j_user": { rule: "required(type_m)",