提交 7bdcb90c 编写于 作者: J jeady

兼容nginx;将部分绝对路径改为相对路径。

上级 7881acbb
logs/
conf/
filesystem/
......@@ -4,7 +4,6 @@
<!-- by 青阳龙野(kohgylw@163.com) -->
<html>
<head>
<base href="/">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
......
......@@ -534,7 +534,7 @@ function showFolderView(fid, targetId) {
document.cookie = "folder_id=" + escape("root");
case "mustLogin":
// 如果服务器说必须登录,那么也跳转至根路径下(从而进入登录页面)
window.location.href = "/";
window.location.href = "pre/login.html";
break;
default:
// 上述情况都不是,则返回的应该是文件夹视图数据,接下来对其进行解析
......
此差异已折叠。
......@@ -95,7 +95,7 @@ function sendLoginInfo(encrypted) {
finishLogin();
$("#accountidbox").removeClass("has-error");
$("#accountpwdbox").removeClass("has-error");
window.location.href = "/home.html";
window.location.href = "./home.html";
break;
case "accountnotfound":
$("#accountidbox").addClass("has-error");
......
......@@ -88,7 +88,7 @@ function sendSignUpInfo(encrypted){
switch (result) {
case "success":
$("#accountidbox,#accountpwdbox,#repaccountpwdbox").removeClass("has-error");
window.location.href = "/home.html";
window.location.href = "home.html";
break;
case "illegal":
showAlert("提示:注册功能已被禁用,请求被拒绝");
......
<!doctype html>
<html>
<head>
<base href="/">
<base href="../">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
......@@ -69,7 +69,7 @@
<div id="signupBox" class="hidden">
<input class="form-control btn-info"
type="button" value="立即注册"
onclick="window.location.href = '/prv/signup.html'"> <br />
onclick="window.location.href = 'prv/signup.html'"> <br />
</div>
</form>
</div>
......
<!doctype html>
<html>
<head>
<base href="/">
<base href="../">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册