Commit 632f1d84 authored by Vanessa's avatar Vanessa

fixed #66

parent b8790ce8
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<div class="footerWrapper"> <div class="footerWrapper">
<div class="footer"> <div class="footer">
&copy; ${year} - <a href="http://${blogHost}">${blogTitle}</a><br/> &copy; ${year} - <a href="${blogHost}">${blogTitle}</a><br/>
Powered by Powered by
<a href="http://b3log.org" target="_blank"> <a href="http://b3log.org" target="_blank">
${b3logLabel}&nbsp; ${b3logLabel}&nbsp;
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
* *
* @author <a href="mailto:LLY219@gmail.com">Liyuan Li</a> * @author <a href="mailto:LLY219@gmail.com">Liyuan Li</a>
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a> * @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @version 1.0.2.2, Jul 23, 2012 * @version 1.0.2.3, Aug 24, 2012
*/ */
/** /**
...@@ -164,17 +164,11 @@ var Util = { ...@@ -164,17 +164,11 @@ var Util = {
* @description topbar 清除缓存按钮事件 * @description topbar 清除缓存按钮事件
*/ */
clearCache: function (all) { clearCache: function (all) {
var data = {}; var data = '';
if (all === "all") { if (all === "all") {
data = { data = '{"all": "all", "URI": ""}';
"all": "all",
"URI": ""
};
} else { } else {
data = { data = '{"all": "all", "URI": "' + window.location.pathname + '"}';
"all": "",
"URI": window.location.pathname
};
} }
$.ajax({ $.ajax({
...@@ -182,7 +176,7 @@ var Util = { ...@@ -182,7 +176,7 @@ var Util = {
url: latkeConfig.servePath + "/clear-cache.do", url: latkeConfig.servePath + "/clear-cache.do",
cache: false, cache: false,
contentType: "application/json", contentType: "application/json",
data: JSON.stringify(data), data: data,
success: function(result){ success: function(result){
window.location.reload(); window.location.reload();
} }
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<div class="footerWrapper"> <div class="footerWrapper">
<div class="footer"> <div class="footer">
&copy; ${year} - <a href="http://${blogHost}">${blogTitle}</a><br/> &copy; ${year} - <a href="${blogHost}">${blogTitle}</a><br/>
Powered by Powered by
<a href="http://b3log.org" target="_blank"> <a href="http://b3log.org" target="_blank">
${b3logLabel}&nbsp; ${b3logLabel}&nbsp;
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
</div> </div>
<div class="footerWrapper"> <div class="footerWrapper">
<div class="footer"> <div class="footer">
&copy; ${year} - <a href="http://${blogHost}">${blogTitle}</a><br/> &copy; ${year} - <a href="${blogHost}">${blogTitle}</a><br/>
Powered by Powered by
<a href="http://b3log.org" target="_blank"> <a href="http://b3log.org" target="_blank">
${b3logLabel}&nbsp; ${b3logLabel}&nbsp;
...@@ -96,16 +96,16 @@ ...@@ -96,16 +96,16 @@
return; return;
} }
var requestJSONObject = { var requestJSONObject = '{'
"userEmail": $("#userEmail").val(), + '"userEmail": ' + $("#userEmail").val() + ','
"userPassword": $("#userPassword").val() + '"userPassword": ' + $("#userPassword").val()
}; + '}';
$.ajax({ $.ajax({
url: "${servePath}/login", url: "${servePath}/login",
type: "POST", type: "POST",
contentType: "application/json", contentType: "application/json",
data: JSON.stringify(requestJSONObject), data: requestJSONObject,
error: function(){ error: function(){
// alert("Login error!"); // alert("Login error!");
}, },
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<a href="https://github.com/b3log/b3log-solo" target="_blank" class="hover"> <a href="https://github.com/b3log/b3log-solo" target="_blank" class="hover">
B3log Solo B3log Solo
</a> </a>
&nbsp;${onlineVisitor1Label}${onlineVisitorCnt} <span class="left">&nbsp;${onlineVisitor1Label}${onlineVisitorCnt}</span>
<span class="right" id="admin"> <span class="right" id="admin">
<#if isLoggedIn> <#if isLoggedIn>
<span>${userName}</span> <span>${userName}</span>
......
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