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
d25cfb74
Commit
d25cfb74
authored
Aug 26, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for #2097 (Quotes are now handled properly in UI-editable tables)
parent
afa585eb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
admin.py
cps/admin.py
+1
-1
bootstrap-table-editable.min.js
...c/js/libs/bootstrap-table/bootstrap-table-editable.min.js
+2
-2
table.js
cps/static/js/table.js
+1
-0
No files found.
cps/admin.py
View file @
d25cfb74
...
@@ -888,7 +888,7 @@ def list_restriction(res_type, user_id):
...
@@ -888,7 +888,7 @@ def list_restriction(res_type, user_id):
else
:
else
:
json_dumps
=
""
json_dumps
=
""
js
=
json
.
dumps
(
json_dumps
)
js
=
json
.
dumps
(
json_dumps
)
response
=
make_response
(
js
.
replace
(
"'"
,
'"'
)
)
response
=
make_response
(
js
)
#.replace("'", '"'
)
response
.
headers
[
"Content-Type"
]
=
"application/json; charset=utf-8"
response
.
headers
[
"Content-Type"
]
=
"application/json; charset=utf-8"
return
response
return
response
...
...
cps/static/js/libs/bootstrap-table/bootstrap-table-editable.min.js
View file @
d25cfb74
This diff is collapsed.
Click to expand it.
cps/static/js/table.js
View file @
d25cfb74
...
@@ -610,6 +610,7 @@ function checkboxFormatter(value, row){
...
@@ -610,6 +610,7 @@ function checkboxFormatter(value, row){
else
else
return
'<input type="checkbox" class="chk" data-pk="'
+
row
.
id
+
'" data-name="'
+
this
.
field
+
'" onchange="checkboxChange(this, '
+
row
.
id
+
',
\'
'
+
this
.
name
+
'
\'
, '
+
this
.
column
+
')">'
;
return
'<input type="checkbox" class="chk" data-pk="'
+
row
.
id
+
'" data-name="'
+
this
.
field
+
'" onchange="checkboxChange(this, '
+
row
.
id
+
',
\'
'
+
this
.
name
+
'
\'
, '
+
this
.
column
+
')">'
;
}
}
function
singlecheckboxFormatter
(
value
,
row
){
function
singlecheckboxFormatter
(
value
,
row
){
if
(
value
)
if
(
value
)
return
'<input type="checkbox" class="chk" data-pk="'
+
row
.
id
+
'" data-name="'
+
this
.
field
+
'" checked onchange="checkboxChange(this, '
+
row
.
id
+
',
\'
'
+
this
.
name
+
'
\'
, 0)">'
;
return
'<input type="checkbox" class="chk" data-pk="'
+
row
.
id
+
'" data-name="'
+
this
.
field
+
'" checked onchange="checkboxChange(this, '
+
row
.
id
+
',
\'
'
+
this
.
name
+
'
\'
, 0)">'
;
...
...
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