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
abe46e18
Commit
abe46e18
authored
Oct 09, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show checkbox from boolean custom columns on details page with caliblur theme
parent
58735caf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
caliBlur.js
cps/static/js/caliBlur.js
+6
-1
No files found.
cps/static/js/caliBlur.js
View file @
abe46e18
...
...
@@ -150,11 +150,16 @@ if ($("body.book").length > 0) {
var
splitText
=
$
(
this
).
text
().
split
(
':'
);
var
label
=
splitText
.
shift
().
trim
();
var
value
=
splitText
.
join
(
':'
).
trim
();
var
class_value
=
""
// Preserve Links
if
(
$
(
this
).
find
(
'a'
).
length
)
{
value
=
$
(
this
).
find
(
'a'
).
first
().
removeClass
();
}
$
(
this
).
html
(
'<span>'
+
label
+
'</span><span></span>'
).
find
(
'span'
).
last
().
append
(
value
);
// Preserve glyphicons
if
(
$
(
this
).
find
(
'span'
).
length
)
{
class_value
=
$
(
this
).
find
(
'span'
).
first
().
attr
(
'class'
);
}
$
(
this
).
html
(
'<span>'
+
label
+
'</span><span class="'
+
class_value
+
'"></span>'
).
find
(
'span'
).
last
().
append
(
value
);
});
$
(
".book-meta h2:first"
).
clone
()
...
...
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