修改提示语句.

This commit is contained in:
zhangwenqing
2018-08-12 17:58:21 +08:00
parent 7fc1c3a0da
commit 5b58ac229e
2 changed files with 7 additions and 2 deletions

View File

@@ -391,7 +391,7 @@ protocol_code=Protocol No
protocol_name=Protocol Name protocol_name=Protocol Name
group_id=Configuration Group ID group_id=Configuration Group ID
input_protocol_id=Please enter protocol ID input_protocol_id=Please enter protocol ID
input_protocol_name=Please enter protocol name input_protocol_name=Please enter Protocol Name
input_integer=Please enter correct Number input_integer=Please enter correct Number
protocol_desc=Protocol Description protocol_desc=Protocol Description
max_value=The maximum value should not be greater than max_value=The maximum value should not be greater than

View File

@@ -90,7 +90,12 @@
$("#seltype").change(function(){ $("#seltype").change(function(){
$("#intype").val(""); $("#intype").val("");
$("#intype").attr("placeholder","<spring:message code='input'/>"+$(this).find("option:selected").text()); var reg = /[A-Za-z]/;
if (reg.test($(".page-title").text())){
$("#intype").attr("placeholder","<spring:message code='input'/>"+" "+$(this).find("option:selected").text());
} else {
$("#intype").attr("placeholder","<spring:message code='input'/>"+$(this).find("option:selected").text());
}
$("#intype").attr("name",$(this).find("option:selected").val()); $("#intype").attr("name",$(this).find("option:selected").val());
}); });
$("#treeTable").treeTable({expandLevel : 3}).show(); $("#treeTable").treeTable({expandLevel : 3}).show();