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
ba40c669
Commit
ba40c669
authored
Oct 02, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'filepicker/fix-filemodal'
parents
e064a3ec
781ca7a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
main.js
cps/static/js/main.js
+5
-5
No files found.
cps/static/js/main.js
View file @
ba40c669
...
...
@@ -650,10 +650,10 @@ $(function() {
var
folder
=
target
.
data
(
"folderonly"
);
var
filter
=
target
.
data
(
"filefilter"
);
$
(
"#element_selected"
).
text
(
path
);
$
(
"#file_confirm"
)
[
0
].
attributes
[
"data-link"
].
value
=
target
.
data
(
"link"
);
$
(
"#file_confirm"
)
[
0
].
attributes
[
"data-folderonly"
].
value
=
(
typeof
folder
===
'undefined'
)
?
false
:
true
;
$
(
"#file_confirm"
)
[
0
].
attributes
[
"data-filefilter"
].
value
=
(
typeof
filter
===
'undefined'
)
?
""
:
filter
;
$
(
"#file_confirm"
)
[
0
].
attributes
[
"data-newfile"
].
value
=
target
.
data
(
"newfile"
);
$
(
"#file_confirm"
)
.
data
(
"link"
,
target
.
data
(
"link"
)
);
$
(
"#file_confirm"
)
.
data
(
"folderonly"
,
(
typeof
folder
===
'undefined'
)
?
false
:
true
)
;
$
(
"#file_confirm"
)
.
data
(
"filefilter"
,
(
typeof
filter
===
'undefined'
)
?
""
:
filter
)
;
$
(
"#file_confirm"
)
.
data
(
"newfile"
,
target
.
data
(
"newfile"
)
);
fillFileTable
(
path
,
"dir"
,
folder
,
filter
);
});
...
...
@@ -667,7 +667,7 @@ $(function() {
var
folder
=
$
(
file_confirm
).
data
(
"folderonly"
);
var
filter
=
$
(
file_confirm
).
data
(
"filefilter"
);
var
newfile
=
$
(
file_confirm
).
data
(
"newfile"
);
if
(
newfile
!==
'undefined'
)
{
if
(
newfile
!==
""
)
{
$
(
"#element_selected"
).
text
(
path
+
$
(
"#new_file"
.
text
()));
}
else
{
$
(
"#element_selected"
).
text
(
path
);
...
...
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