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
67874e07
Commit
67874e07
authored
4 years ago
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix routes for reverse proxy
parent
ced0bcfe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
table.js
cps/static/js/table.js
+5
-5
No files found.
cps/static/js/table.js
View file @
67874e07
...
@@ -65,7 +65,7 @@ $(function() {
...
@@ -65,7 +65,7 @@ $(function() {
method
:
"post"
,
method
:
"post"
,
contentType
:
"application/json; charset=utf-8"
,
contentType
:
"application/json; charset=utf-8"
,
dataType
:
"json"
,
dataType
:
"json"
,
url
:
window
.
location
.
pathname
+
"/../
../
ajax/mergebooks"
,
url
:
window
.
location
.
pathname
+
"/../ajax/mergebooks"
,
data
:
JSON
.
stringify
({
"Merge_books"
:
selections
}),
data
:
JSON
.
stringify
({
"Merge_books"
:
selections
}),
success
:
function
success
()
{
success
:
function
success
()
{
$
(
"#books-table"
).
bootstrapTable
(
"refresh"
);
$
(
"#books-table"
).
bootstrapTable
(
"refresh"
);
...
@@ -79,7 +79,7 @@ $(function() {
...
@@ -79,7 +79,7 @@ $(function() {
method
:
"post"
,
method
:
"post"
,
contentType
:
"application/json; charset=utf-8"
,
contentType
:
"application/json; charset=utf-8"
,
dataType
:
"json"
,
dataType
:
"json"
,
url
:
window
.
location
.
pathname
+
"/../
../
ajax/simulatemerge"
,
url
:
window
.
location
.
pathname
+
"/../ajax/simulatemerge"
,
data
:
JSON
.
stringify
({
"Merge_books"
:
selections
}),
data
:
JSON
.
stringify
({
"Merge_books"
:
selections
}),
success
:
function
success
(
booTitles
)
{
success
:
function
success
(
booTitles
)
{
$
.
each
(
booTitles
.
from
,
function
(
i
,
item
)
{
$
.
each
(
booTitles
.
from
,
function
(
i
,
item
)
{
...
@@ -96,7 +96,7 @@ $(function() {
...
@@ -96,7 +96,7 @@ $(function() {
method
:
"post"
,
method
:
"post"
,
contentType
:
"application/json; charset=utf-8"
,
contentType
:
"application/json; charset=utf-8"
,
dataType
:
"json"
,
dataType
:
"json"
,
url
:
window
.
location
.
pathname
+
"/../
../
ajax/xchange"
,
url
:
window
.
location
.
pathname
+
"/../ajax/xchange"
,
data
:
JSON
.
stringify
({
"xchange"
:
selections
}),
data
:
JSON
.
stringify
({
"xchange"
:
selections
}),
success
:
function
success
()
{
success
:
function
success
()
{
$
(
"#books-table"
).
bootstrapTable
(
"refresh"
);
$
(
"#books-table"
).
bootstrapTable
(
"refresh"
);
...
@@ -163,7 +163,7 @@ $(function() {
...
@@ -163,7 +163,7 @@ $(function() {
$
.
ajax
({
$
.
ajax
({
method
:
"get"
,
method
:
"get"
,
dataType
:
"json"
,
dataType
:
"json"
,
url
:
window
.
location
.
pathname
+
"/../
../
ajax/sort_value/"
+
field
+
"/"
+
row
.
id
,
url
:
window
.
location
.
pathname
+
"/../ajax/sort_value/"
+
field
+
"/"
+
row
.
id
,
success
:
function
success
(
data
)
{
success
:
function
success
(
data
)
{
var
key
=
Object
.
keys
(
data
)[
0
];
var
key
=
Object
.
keys
(
data
)[
0
];
$
(
"#books-table"
).
bootstrapTable
(
"updateCellByUniqueId"
,
{
$
(
"#books-table"
).
bootstrapTable
(
"updateCellByUniqueId"
,
{
...
@@ -191,7 +191,7 @@ $(function() {
...
@@ -191,7 +191,7 @@ $(function() {
method
:
"post"
,
method
:
"post"
,
contentType
:
"application/json; charset=utf-8"
,
contentType
:
"application/json; charset=utf-8"
,
dataType
:
"json"
,
dataType
:
"json"
,
url
:
window
.
location
.
pathname
+
"/../
../
ajax/table_settings"
,
url
:
window
.
location
.
pathname
+
"/../ajax/table_settings"
,
data
:
"{"
+
st
+
"}"
,
data
:
"{"
+
st
+
"}"
,
});
});
},
},
...
...
This diff is collapsed.
Click to expand it.
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