diff --git a/OpsManage/templates/assets/assets_config.html b/OpsManage/templates/assets/assets_config.html
index f4fde2c6..24c7fba5 100755
--- a/OpsManage/templates/assets/assets_config.html
+++ b/OpsManage/templates/assets/assets_config.html
@@ -632,6 +632,7 @@
var value = form[i].value;
if ( value.length == 0){
window.wxc.xcConfirm("请注意必填项不能为空~", window.wxc.xcConfirm.typeEnum.error);
+ btnObj.removeAttr('disabled');
return false;
}
else{
@@ -676,6 +677,7 @@
post_data[name] = value;
if ( value.length == 0){
window.wxc.xcConfirm("请注意必填项不能为空~", window.wxc.xcConfirm.typeEnum.error);
+ btnObj.removeAttr('disabled');
return false;
}
else{
@@ -710,6 +712,7 @@
onOk:function(result){
if (result.length == 0){
/* 如果没有输入字符串则直接退出 */
+ btnObj.removeAttr('disabled');
return;
};
if (op=="service"){
diff --git a/OpsManage/templates/database/db_config.html b/OpsManage/templates/database/db_config.html
index 2ccdf2ec..9d574a7a 100644
--- a/OpsManage/templates/database/db_config.html
+++ b/OpsManage/templates/database/db_config.html
@@ -715,6 +715,7 @@
idx = $.inArray(name, required);
if (idx >= 0 && value.length == 0){
window.wxc.xcConfirm("请注意必填项不能为空~", window.wxc.xcConfirm.typeEnum.error);
+ btnObj.removeAttr('disabled');
return false;
};
if ( value.length != 0 && name.length != 0 ){
@@ -752,6 +753,7 @@
idx = $.inArray(name, required);
if (idx >= 0 && value.length == 0){
window.wxc.xcConfirm("请注意必填项不能为空~", window.wxc.xcConfirm.typeEnum.error);
+ btnObj.removeAttr('disabled');
return false;
};
if ( value.length != 0 && name.length != 0 ){
@@ -789,6 +791,7 @@
idx = $.inArray(name, required);
if (idx >= 0 && value.length == 0){
window.wxc.xcConfirm("请注意必填项不能为空~", window.wxc.xcConfirm.typeEnum.error);
+ btnObj.removeAttr('disabled');
return false;
};
if ( value.length != 0 && name.length != 0 ){
@@ -826,6 +829,7 @@
idx = $.inArray(name, required);
if (idx >= 0 && value.length == 0){
window.wxc.xcConfirm("请注意必填项不能为空~", window.wxc.xcConfirm.typeEnum.error);
+ btnObj.removeAttr('disabled');
return false;
};
if ( value.length != 0 && name.length != 0 ){