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
56964a89
Commit
56964a89
authored
Jan 11, 2020
by
Simon Latapie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
caliBlur theme: fix custom column display that contain colons
parent
79a9ef48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
caliBlur.js
cps/static/js/caliBlur.js
+5
-3
No files found.
cps/static/js/caliBlur.js
View file @
56964a89
...
@@ -159,10 +159,12 @@ if ( $( 'body.book' ).length > 0 ) {
...
@@ -159,10 +159,12 @@ if ( $( 'body.book' ).length > 0 ) {
real_custom_column
=
$
(
'.real_custom_columns'
);
real_custom_column
=
$
(
'.real_custom_columns'
);
// $( '.real_custom_columns' ).remove();
// $( '.real_custom_columns' ).remove();
$
.
each
(
real_custom_column
,
function
(
i
,
val
)
{
$
.
each
(
real_custom_column
,
function
(
i
,
val
)
{
real_cc
=
$
(
this
).
text
().
split
(
':'
);
var
split
=
$
(
this
).
text
().
split
(
':'
);
real_cc_key
=
split
.
shift
();
real_cc_value
=
split
.
join
(
':'
);
$
(
this
).
text
(
""
);
$
(
this
).
text
(
""
);
if
(
real_cc
.
length
>
1
)
{
if
(
real_cc
_value
!=
""
)
{
$
(
this
).
append
(
'<span>'
+
real_cc
[
0
]
+
'</span><span>'
+
real_cc
[
1
]
+
'</span>'
);
$
(
this
).
append
(
'<span>'
+
real_cc
_key
+
'</span><span>'
+
real_cc_value
+
'</span>'
);
}
}
});
});
//$( '.real_custom_columns:nth-child(3)' ).text(function() {
//$( '.real_custom_columns:nth-child(3)' ).text(function() {
...
...
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