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
b36422bc
Commit
b36422bc
authored
Aug 01, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update list/grid button action (reverse proxy problem)
parent
1e2335de
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
main.js
cps/static/js/main.js
+1
-1
grid.html
cps/templates/grid.html
+1
-2
list.html
cps/templates/list.html
+1
-1
No files found.
cps/static/js/main.js
View file @
b36422bc
...
...
@@ -706,7 +706,7 @@ $(function() {
method
:
"post"
,
contentType
:
"application/json; charset=utf-8"
,
dataType
:
"json"
,
url
:
window
.
location
.
pathname
+
"/../
../
ajax/view"
,
url
:
window
.
location
.
pathname
+
"/../ajax/view"
,
data
:
"{
\"
series
\"
: {
\"
series_view
\"
:
\"
"
+
view
+
"
\"
}}"
,
success
:
function
success
()
{
location
.
reload
();
...
...
cps/templates/grid.html
View file @
b36422bc
...
...
@@ -18,8 +18,7 @@
<button
class=
"btn btn-primary char"
>
{{char.char}}
</button>
{% endfor %}
</div>
<button
class=
"update-view btn btn-primary"
href=
"#"
data-target=
"series_view"
id=
'list-button'
data-view=
"list"
>
List
</button>
<button
class=
"update-view btn btn-primary"
data-target=
"series_view"
id=
"list-button"
data-view=
"list"
>
List
</button>
</div>
{% if entries[0] %}
...
...
cps/templates/list.html
View file @
b36422bc
...
...
@@ -20,7 +20,7 @@
</div>
{% if data == "series" %}
<button
class=
"update-view btn btn-primary"
href=
"#"
data-target=
"series_view"
id=
'grid-button'
data-view=
"grid"
>
Grid
</button>
<button
class=
"update-view btn btn-primary"
data-target=
"series_view"
id=
"grid-button"
data-view=
"grid"
>
Grid
</button>
{% endif %}
</div>
<div
class=
"container"
>
...
...
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