提交 5ceef080 编写于 作者: S sogabe

use encodeURIComponent so that viewExistsCheck works for Japanese view name.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@20670 71c3de6d-444a-0410-be80-ed276b4c234a
上级 1ccf2a38
......@@ -34,7 +34,7 @@ THE SOFTWARE.
<l:main-panel>
<f:form method="post" action="createView" name="createView">
<f:entry title="${%View name}">
<f:textbox id="name" name="name" checkUrl="'${rootURL}/${it.url}/viewExistsCheck?value='+escape(this.value)+'&amp;exists=false'"
<f:textbox id="name" name="name" checkUrl="'${rootURL}/${it.url}/viewExistsCheck?value='+encodeURIComponent(this.value)+'&amp;exists=false'"
onchange="updateOk(this.form)" onkeyup="updateOk(this.form)" />
<script>
$('name').focus();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册