From 5b58ac229ee0648e6456abb9f2b59b1b1c4aa0f8 Mon Sep 17 00:00:00 2001 From: zhangwenqing Date: Sun, 12 Aug 2018 17:58:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA=E8=AF=AD?= =?UTF-8?q?=E5=8F=A5.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/messages/message_en.properties | 2 +- src/main/webapp/WEB-INF/views/basics/serviceDictList.jsp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/resources/messages/message_en.properties b/src/main/resources/messages/message_en.properties index 8d91a65bf..0b410d986 100644 --- a/src/main/resources/messages/message_en.properties +++ b/src/main/resources/messages/message_en.properties @@ -391,7 +391,7 @@ protocol_code=Protocol No protocol_name=Protocol Name group_id=Configuration Group 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 protocol_desc=Protocol Description max_value=The maximum value should not be greater than diff --git a/src/main/webapp/WEB-INF/views/basics/serviceDictList.jsp b/src/main/webapp/WEB-INF/views/basics/serviceDictList.jsp index 225c1cc6a..3fed03a0e 100644 --- a/src/main/webapp/WEB-INF/views/basics/serviceDictList.jsp +++ b/src/main/webapp/WEB-INF/views/basics/serviceDictList.jsp @@ -90,7 +90,12 @@ $("#seltype").change(function(){ $("#intype").val(""); - $("#intype").attr("placeholder",""+$(this).find("option:selected").text()); + var reg = /[A-Za-z]/; + if (reg.test($(".page-title").text())){ + $("#intype").attr("placeholder",""+" "+$(this).find("option:selected").text()); + } else { + $("#intype").attr("placeholder",""+$(this).find("option:selected").text()); + } $("#intype").attr("name",$(this).find("option:selected").val()); }); $("#treeTable").treeTable({expandLevel : 3}).show();