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
063ee5e8
Commit
063ee5e8
authored
Apr 24, 2020
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'remove_usage_local_var_undeclared'
Code cosmetics
parents
7393b697
d8bf540d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
14 deletions
+10
-14
get_meta.js
cps/static/js/get_meta.js
+6
-6
main.js
cps/static/js/main.js
+3
-5
table.js
cps/static/js/table.js
+1
-3
No files found.
cps/static/js/get_meta.js
View file @
063ee5e8
...
@@ -73,9 +73,9 @@ $(function () {
...
@@ -73,9 +73,9 @@ $(function () {
if
(
showFlag
===
1
)
{
if
(
showFlag
===
1
)
{
$
(
"#meta-info"
).
html
(
"<ul id=
\"
book-list
\"
class=
\"
media-list
\"
></ul>"
);
$
(
"#meta-info"
).
html
(
"<ul id=
\"
book-list
\"
class=
\"
media-list
\"
></ul>"
);
}
}
if
((
ggDone
==
3
||
(
ggDone
==
1
&&
ggResults
.
length
===
0
))
&&
if
((
ggDone
==
=
3
||
(
ggDone
=
==
1
&&
ggResults
.
length
===
0
))
&&
(
dbDone
==
3
||
(
ggDone
==
1
&&
dbResults
.
length
===
0
))
&&
(
dbDone
==
=
3
||
(
ggDone
=
==
1
&&
dbResults
.
length
===
0
))
&&
(
cvDone
==
3
||
(
ggDone
==
1
&&
cvResults
.
length
===
0
)))
{
(
cvDone
==
=
3
||
(
ggDone
=
==
1
&&
cvResults
.
length
===
0
)))
{
$
(
"#meta-info"
).
html
(
"<p class=
\"
text-danger
\"
>"
+
msg
.
no_result
+
"</p>"
);
$
(
"#meta-info"
).
html
(
"<p class=
\"
text-danger
\"
>"
+
msg
.
no_result
+
"</p>"
);
return
;
return
;
}
}
...
@@ -191,7 +191,7 @@ $(function () {
...
@@ -191,7 +191,7 @@ $(function () {
var
dateFomers
=
""
;
var
dateFomers
=
""
;
if
(
result
.
store_date
)
{
if
(
result
.
store_date
)
{
dateFomers
=
result
.
store_date
.
split
(
"-"
);
dateFomers
=
result
.
store_date
.
split
(
"-"
);
}
else
{
}
else
{
dateFomers
=
result
.
date_added
.
split
(
"-"
);
dateFomers
=
result
.
date_added
.
split
(
"-"
);
}
}
var
publishedYear
=
parseInt
(
dateFomers
[
0
]);
var
publishedYear
=
parseInt
(
dateFomers
[
0
]);
...
@@ -202,12 +202,12 @@ $(function () {
...
@@ -202,12 +202,12 @@ $(function () {
var
book
=
{
var
book
=
{
id
:
result
.
id
,
id
:
result
.
id
,
title
:
seriesTitle
+
' #'
+
(
'00'
+
result
.
issue_number
).
slice
(
-
3
)
+
' - '
+
result
.
name
,
title
:
seriesTitle
+
" #"
+
(
"00"
+
result
.
issue_number
).
slice
(
-
3
)
+
" - "
+
result
.
name
,
authors
:
result
.
author
||
[],
authors
:
result
.
author
||
[],
description
:
result
.
description
,
description
:
result
.
description
,
publisher
:
""
,
publisher
:
""
,
publishedDate
:
publishedDate
||
""
,
publishedDate
:
publishedDate
||
""
,
tags
:
[
'Comics'
,
seriesTitle
],
tags
:
[
"Comics"
,
seriesTitle
],
rating
:
0
,
rating
:
0
,
series
:
seriesTitle
||
""
,
series
:
seriesTitle
||
""
,
cover
:
result
.
image
.
original_url
,
cover
:
result
.
image
.
original_url
,
...
...
cps/static/js/main.js
View file @
063ee5e8
...
@@ -211,8 +211,7 @@ $(function() {
...
@@ -211,8 +211,7 @@ $(function() {
data
:
{
"parameter"
:
2
},
data
:
{
"parameter"
:
2
},
success
:
function
success
(
data
)
{
success
:
function
success
(
data
)
{
$
(
"#spinner2"
).
hide
();
$
(
"#spinner2"
).
hide
();
ResultText
=
data
.
text
;
$
(
"#DialogContent"
).
html
(
data
.
text
);
$
(
"#DialogContent"
).
html
(
ResultText
);
$
(
"#DialogFinished"
).
removeClass
(
"hidden"
);
$
(
"#DialogFinished"
).
removeClass
(
"hidden"
);
}
}
});
});
...
@@ -298,7 +297,7 @@ $(function() {
...
@@ -298,7 +297,7 @@ $(function() {
$
(
".discover .row"
).
isotope
(
"layout"
);
$
(
".discover .row"
).
isotope
(
"layout"
);
});
});
$
(
'#import_ldap_users'
).
click
(
function
()
{
$
(
"#import_ldap_users"
).
click
(
function
()
{
$
(
"#DialogHeader"
).
addClass
(
"hidden"
);
$
(
"#DialogHeader"
).
addClass
(
"hidden"
);
$
(
"#DialogFinished"
).
addClass
(
"hidden"
);
$
(
"#DialogFinished"
).
addClass
(
"hidden"
);
$
(
"#DialogContent"
).
html
(
""
);
$
(
"#DialogContent"
).
html
(
""
);
...
@@ -311,8 +310,7 @@ $(function() {
...
@@ -311,8 +310,7 @@ $(function() {
url
:
path
+
"/../../import_ldap_users"
,
url
:
path
+
"/../../import_ldap_users"
,
success
:
function
success
(
data
)
{
success
:
function
success
(
data
)
{
$
(
"#spinner2"
).
hide
();
$
(
"#spinner2"
).
hide
();
ResultText
=
data
.
text
;
$
(
"#DialogContent"
).
html
(
data
.
text
);
$
(
"#DialogContent"
).
html
(
ResultText
);
$
(
"#DialogFinished"
).
removeClass
(
"hidden"
);
$
(
"#DialogFinished"
).
removeClass
(
"hidden"
);
}
}
});
});
...
...
cps/static/js/table.js
View file @
063ee5e8
...
@@ -149,12 +149,10 @@ $(function() {
...
@@ -149,12 +149,10 @@ $(function() {
$
.
ajax
({
$
.
ajax
({
url
:
path
+
"/../../ajax/editrestriction/"
+
type
,
url
:
path
+
"/../../ajax/editrestriction/"
+
type
,
type
:
"Post"
,
type
:
"Post"
,
data
:
row
//$(this).closest("form").serialize() + "&" + $(this)[0].name + "=",
data
:
row
});
});
});
});
$
(
"[id^=submit_]"
).
click
(
function
(
event
)
{
$
(
"[id^=submit_]"
).
click
(
function
(
event
)
{
// event.stopPropagation();
// event.preventDefault();
$
(
this
)[
0
].
blur
();
$
(
this
)[
0
].
blur
();
$
.
ajax
({
$
.
ajax
({
url
:
path
+
"/../../ajax/addrestriction/"
+
type
,
url
:
path
+
"/../../ajax/addrestriction/"
+
type
,
...
...
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