Commit 632f1d84 authored by Vanessa's avatar Vanessa

fixed #66

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