Commit b701437a authored by Liang Ding's avatar Liang Ding

修复注册链接上下文路径问题

parent 06be1bc7
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
$("#tipInit").html("<img src='${staticServePath}/images/loading.gif'/> loading..."); $("#tipInit").html("<img src='${staticServePath}/images/loading.gif'/> loading...");
$.ajax({ $.ajax({
url: "${contextPath}/init", url: "${servePath}/init",
type: "POST", type: "POST",
data: JSON.stringify(requestJSONObject), data: JSON.stringify(requestJSONObject),
success: function(result, textStatus) { success: function(result, textStatus) {
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
$("#tip").html("<img src='${staticServePath}/images/loading.gif'/> loading...") $("#tip").html("<img src='${staticServePath}/images/loading.gif'/> loading...")
$.ajax({ $.ajax({
url: "${contextPath}" + "/console/user/", url: "${servePath}" + "/console/user/",
type: "POST", type: "POST",
cache: false, cache: false,
data: JSON.stringify(requestJSONObject), data: JSON.stringify(requestJSONObject),
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
} }
#showTop { #showTop {
background-image: url("${contextPath}/images/arrow-right.png"); background-image: url("${staticServePath}/images/arrow-right.png");
cursor: pointer; cursor: pointer;
height: 26px; height: 26px;
right: 0; right: 0;
...@@ -44,11 +44,11 @@ ...@@ -44,11 +44,11 @@
} }
#showTop:hover { #showTop:hover {
background-image: url("${contextPath}/images/arrow-right.gif"); background-image: url("${staticServePath}/images/arrow-right.gif");
} }
#top #hideTop { #top #hideTop {
background-image: url("${contextPath}/images/arrow-left.png"); background-image: url("${staticServePath}/images/arrow-left.png");
height: 26px; height: 26px;
margin: 0; margin: 0;
padding: 0; padding: 0;
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
} }
#top #hideTop:hover { #top #hideTop:hover {
background-image: url("${contextPath}/images/arrow-left.gif"); background-image: url("${staticServePath}/images/arrow-left.gif");
border-radius: 0; border-radius: 0;
} }
</style> </style>
...@@ -71,14 +71,14 @@ ...@@ -71,14 +71,14 @@
<#if isLoggedIn> <#if isLoggedIn>
<span id="adminName">${userName}</span> <span id="adminName">${userName}</span>
<#if !isVisitor> <#if !isVisitor>
<a href="${contextPath}/admin-index.do#main" title="${adminLabel}"> <a href="${servePath}/admin-index.do#main" title="${adminLabel}">
${adminLabel} ${adminLabel}
</a> </a>
</#if> </#if>
<a href="${logoutURL}" title="${logoutLabel}">${logoutLabel}</a> <a href="${logoutURL}" title="${logoutLabel}">${logoutLabel}</a>
<#else> <#else>
<a href="${loginURL}" title="${loginLabel}">${loginLabel}</a> <a href="${loginURL}" title="${loginLabel}">${loginLabel}</a>
<a href="/register" title="${registerLabel}">${registerLabel}</a> <a href="${servePath}/register" title="${registerLabel}">${registerLabel}</a>
</#if> </#if>
<#if isMobileRequest> <#if isMobileRequest>
<a href="javascript:void(0)" onclick="Util.switchMobile('mobile');" title="${mobileLabel}">${mobileLabel}</a> <a href="javascript:void(0)" onclick="Util.switchMobile('mobile');" title="${mobileLabel}">${mobileLabel}</a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment