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
de7f039b
Commit
de7f039b
authored
Apr 27, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update list user editor (#1938)
parent
19797d5d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
100 additions
and
127 deletions
+100
-127
main.js
cps/static/js/main.js
+10
-10
table.js
cps/static/js/table.js
+90
-117
No files found.
cps/static/js/main.js
View file @
de7f039b
...
...
@@ -130,16 +130,6 @@ $("#back").click(function() {
function
confirmDialog
(
id
,
dialogid
,
dataValue
,
yesFn
,
noFn
)
{
var
$confirm
=
$
(
"#"
+
dialogid
);
$confirm
.
modal
(
'show'
);
$
.
ajax
({
method
:
"get"
,
dataType
:
"json"
,
url
:
getPath
()
+
"/ajax/loaddialogtexts/"
+
id
,
success
:
function
success
(
data
)
{
$
(
"#header-"
+
dialogid
).
html
(
data
.
header
);
$
(
"#text-"
+
dialogid
).
html
(
data
.
main
);
}
});
$
(
"#btnConfirmYes-"
+
dialogid
).
off
(
'click'
).
click
(
function
()
{
yesFn
(
dataValue
);
$confirm
.
modal
(
"hide"
);
...
...
@@ -150,6 +140,16 @@ function confirmDialog(id, dialogid, dataValue, yesFn, noFn) {
}
$confirm
.
modal
(
"hide"
);
});
$
.
ajax
({
method
:
"get"
,
dataType
:
"json"
,
url
:
getPath
()
+
"/ajax/loaddialogtexts/"
+
id
,
success
:
function
success
(
data
)
{
$
(
"#header-"
+
dialogid
).
html
(
data
.
header
);
$
(
"#text-"
+
dialogid
).
html
(
data
.
main
);
}
});
$confirm
.
modal
(
'show'
);
}
$
(
"#delete_confirm"
).
click
(
function
()
{
...
...
cps/static/js/table.js
View file @
de7f039b
This diff is collapsed.
Click to expand it.
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