Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
0c40e40d
Commit
0c40e40d
authored
Sep 27, 2019
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix logfile loading behind reverse proxy (#1047)
parent
e31df163
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
logviewer.js
cps/static/js/logviewer.js
+1
-14
No files found.
cps/static/js/logviewer.js
View file @
0c40e40d
...
@@ -32,21 +32,8 @@ function init(logType) {
...
@@ -32,21 +32,8 @@ function init(logType) {
var
d
=
document
.
getElementById
(
"renderer"
);
var
d
=
document
.
getElementById
(
"renderer"
);
d
.
innerHTML
=
"loading ..."
;
d
.
innerHTML
=
"loading ..."
;
/*var r = new XMLHttpRequest();
r.open("GET", "/ajax/log/" + logType, true);
r.responseType = "text";
r.onload = function() {
var text;
text = (r.responseText).split("\n");
$("#renderer").text("");
console.log(text.length);
for (var i = 0; i < text.length; i++) {
$("#renderer").append( "<div>" + _sanitize(text[i]) + "</div>" );
}
};
r.send();*/
$
.
ajax
({
$
.
ajax
({
url
:
"
/ajax/log/"
+
logType
,
url
:
window
.
location
.
pathname
+
"/../..
/ajax/log/"
+
logType
,
datatype
:
"text"
,
datatype
:
"text"
,
cache
:
false
cache
:
false
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment