提交 5f34c0d8 编写于 作者: K kohsuke

simplifying

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18858 71c3de6d-444a-0410-be80-ed276b4c234a
上级 7ce44ac2
......@@ -1167,16 +1167,6 @@ public class Functions {
return builder.toString();
}
public static String getReplaceDescriptionInvoker(StaplerRequest req) {
StringBuilder builder = new StringBuilder();
if (isAutoRefresh(req)) {
builder.append("null");
} else {
builder.append("'return replaceDescription();'");
}
return builder.toString();
}
private static final Pattern SCHEME = Pattern.compile("[a-z]+://.+");
/**
......
......@@ -39,7 +39,7 @@ THE SOFTWARE.
</div>
<l:hasPermission permission="${permission}">
<div align="right"><a href="editDescription" onclick="${h.getReplaceDescriptionInvoker(request)}">
<div align="right"><a href="editDescription" onclick="${h.isAutoRefresh(request) ? null : 'return replaceDescription();'}">
<img src="${imagesURL}/16x16/notepad.gif" alt="" />
<j:choose>
<j:when test="${empty(it.description)}">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册