Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-webui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-webui
Commits
2f4964a6
Commit
2f4964a6
authored
4 years ago
by
Florian Spreckelsen
Browse files
Options
Downloads
Patches
Plain Diff
FIX: Repair and re-style the upload button
parent
6603a502
No related branches found
No related tags found
2 merge requests
!29
fix paging
,
!28
FIX: Re-enable file-upload button
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ext/js/fileupload.js
+8
-8
8 additions, 8 deletions
src/ext/js/fileupload.js
with
8 additions
and
8 deletions
src/ext/js/fileupload.js
+
8
−
8
View file @
2f4964a6
...
@@ -27,19 +27,19 @@ var fileupload = new function() {
...
@@ -27,19 +27,19 @@ var fileupload = new function() {
// * style path input
// * style path input
const
_modal_str
=
`
const
_modal_str
=
`
<div class="modal fade" tabindex="-1" role="dialog">
<div class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-content">
<div class="modal-header">
<div class="modal-header">
<h4 class="modal-title">File Upload</h4>
<h4 class="modal-title">File Upload</h4>
<button type="button" class="btn-close" data-bs-dismiss="modal">
<button type="button" class="btn-close" data-bs-dismiss="modal">
</button>
</button>
</div>
</div>
<div class="modal-body">
<div class="modal-body">
<form action="/Entity/" class="dropzone dz-clickable" >
<form action="/Entity/" class="dropzone dz-clickable" >
<label>path</label>
<label>path</label>
<input id="upload-path" type="text" value="/"/>
<input id="upload-path" type="text" value="/"/>
<div class="dz-message">
<div class="dz-message">
Drag'n'drop files to this area or click to upload.
Drag'n'drop files to this area or click to upload.
</div>
</div>
</form>
</form>
</div>
</div>
...
@@ -135,7 +135,7 @@ var fileupload = new function() {
...
@@ -135,7 +135,7 @@ var fileupload = new function() {
input
.
after
(
`<div class="alert alert-danger alert-dismissible"
input
.
after
(
`<div class="alert alert-danger alert-dismissible"
role="alert">
role="alert">
<button type="button" class="btn-close" data-bs-dismiss="alert"
<button type="button" class="btn-close" data-bs-dismiss="alert"
aria-label="Close"><
span aria-hidden="true">×</span><
/button>
aria-label="Close"></button>
<strong>Error!</strong> You are not logged in!.</div>`
);
<strong>Error!</strong> You are not logged in!.</div>`
);
}
else
{
}
else
{
globalError
(
event
,
error
,
xhr
);
globalError
(
event
,
error
,
xhr
);
...
@@ -201,7 +201,7 @@ var fileupload = new function() {
...
@@ -201,7 +201,7 @@ var fileupload = new function() {
input
.
after
(
`<div class="alert alert-success alert-dismissible"
input
.
after
(
`<div class="alert alert-success alert-dismissible"
role="alert">
role="alert">
<button type="button" class="btn-close" data-bs-dismiss="alert"
<button type="button" class="btn-close" data-bs-dismiss="alert"
aria-label="Close"><
span aria-hidden="true">×</span><
/button>
aria-label="Close"></button>
<strong>Success!</strong>
<strong>Success!</strong>
The file <code class="caosdb-f-file-upload-file-name">`
+
The file <code class="caosdb-f-file-upload-file-name">`
+
getEntityName
(
entity
)
+
`</code> has been uploaded.</div>`
);
getEntityName
(
entity
)
+
`</code> has been uploaded.</div>`
);
...
@@ -321,7 +321,7 @@ var fileupload = new function() {
...
@@ -321,7 +321,7 @@ var fileupload = new function() {
error_handler
,
error_handler
,
atom_par
);
atom_par
);
var
toggle_function
=
function
()
{
var
toggle_function
=
function
()
{
$
(
modal
).
modal
(
)
$
(
modal
).
modal
(
"
toggle
"
);
};
};
this
.
add_file_upload_button
(
edit_menu
,
button
,
toggle_function
);
this
.
add_file_upload_button
(
edit_menu
,
button
,
toggle_function
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment