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
d83ba315
Unverified
Commit
d83ba315
authored
Jan 18, 2019
by
hexeth
Committed by
GitHub
Jan 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add sendtokindle-drop to click-off array
parent
16e23cb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
caliBlur.js
cps/static/js/caliBlur.js
+3
-1
No files found.
cps/static/js/caliBlur.js
View file @
d83ba315
...
@@ -160,7 +160,8 @@ return $(this).text().replace(/^\s+|^\t+|\t+|\s+$/g, "");
...
@@ -160,7 +160,8 @@ return $(this).text().replace(/^\s+|^\t+|\t+|\s+$/g, "");
$
(
'<button id="btnGroupDrop1" type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-download"></span>Download :<span class="caret"></span></button><ul class="dropdown-menu leramslist aria-labelledby="btnGroupDrop1"></ul>'
).
insertBefore
(
downloads
[
downloads
.
length
-
1
]
);
$
(
'<button id="btnGroupDrop1" type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-download"></span>Download :<span class="caret"></span></button><ul class="dropdown-menu leramslist aria-labelledby="btnGroupDrop1"></ul>'
).
insertBefore
(
downloads
[
downloads
.
length
-
1
]
);
$
(
downloads
).
detach
();
$
(
downloads
).
detach
();
$
.
each
(
downloads
,
function
(
i
,
val
)
{
$
.
each
(
downloads
,
function
(
i
,
val
)
{
$
(
'<li>'
+
downloads
[
i
].
outerHTML
+
'</li>'
).
appendTo
(
'.leramslist'
);
$
(
'<li>'
+
downloads
[
i
].
outerHTML
+
'</li>'
).
appendTo
(
'.lerams
'
);
});
});
$
(
'.leramslist'
).
find
(
'span'
).
remove
();
$
(
'.leramslist'
).
find
(
'span'
).
remove
();
$
(
'.leramslist a'
).
removeClass
(
'btn btn-primary'
).
removeAttr
(
'role'
);
$
(
'.leramslist a'
).
removeClass
(
'btn btn-primary'
).
removeAttr
(
'role'
);
...
@@ -292,6 +293,7 @@ $(document).mouseup(function (e) {
...
@@ -292,6 +293,7 @@ $(document).mouseup(function (e) {
var
container
=
new
Array
();
var
container
=
new
Array
();
container
.
push
(
$
(
'ul[aria-labelledby="read-in-browser"]'
));
container
.
push
(
$
(
'ul[aria-labelledby="read-in-browser"]'
));
container
.
push
(
$
(
'.leramslist'
));
container
.
push
(
$
(
'.leramslist'
));
container
.
push
(
$
(
'sendtokindle-drop'
));
container
.
push
(
$
(
'#add-to-shelves'
));
container
.
push
(
$
(
'#add-to-shelves'
));
container
.
push
(
$
(
'.navbar-collapse.collapse.in'
));
container
.
push
(
$
(
'.navbar-collapse.collapse.in'
));
...
...
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