Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
web app
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
ICNML
web app
Commits
644d5ad2
Verified
Commit
644d5ad2
authored
3 years ago
by
Marco De Donno
Browse files
Options
Downloads
Plain Diff
Merge branch 'feature/mark_list_delete_on_right_click' into develop
parents
5d4f1c93
a2153bc6
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
views/submission/templates/submission/shared/mark_list.html
+47
-0
47 additions, 0 deletions
views/submission/templates/submission/shared/mark_list.html
with
47 additions
and
0 deletions
views/submission/templates/submission/shared/mark_list.html
+
47
−
0
View file @
644d5ad2
...
...
@@ -68,6 +68,47 @@
{
%
endif
%
}
{
%
endfor
%
}
{
%
endfor
%
}
var
delete_mark
=
function
(
file_uuid
)
{
$
(
"
<div />
"
)
.
attr
(
"
id
"
,
"
delete_confirmation
"
)
.
text
(
"
Do you really want to delete this mark?
"
)
.
dialog
(
{
title
:
"
Confirm mark deletion
"
,
modal
:
true
,
buttons
:
{
"
OK
"
:
function
()
{
$
.
ajax
(
{
{
%
if
admin
%
}
url
:
"
{{ url_for( 'submission.admin_submission_mark_delete', submission_id = submission_id, mark_id = '<uuid>' ) }}
"
.
replace
(
"
%3Cuuid%3E
"
,
file_uuid
),
{
%
else
%
}
url
:
"
{{ url_for( 'submission.submission_mark_delete', submission_id = submission_id, mark_id = '<uuid>' ) }}
"
.
replace
(
"
%3Cuuid%3E
"
,
file_uuid
),
{
%
endif
%
}
dataType
:
"
json
"
,
success
:
function
(
data
)
{
$
(
"
#delete_confirmation
"
).
remove
();
$
(
"
#mark_
"
+
file_uuid
).
remove
();
},
error
:
function
(
data
)
{
$
(
"
#delete_confirmation
"
).
remove
();
}
}
);
},
"
Cancel
"
:
function
()
{
$
(
this
).
dialog
(
"
close
"
);
},
},
close
:
function
()
{
$
(
this
).
remove
();
}
}
);
}
</script>
<style
type=
"text/css"
>
...
...
@@ -124,6 +165,12 @@
{
%
endfor
%
}
{
%
endif
%
}
{
%
for
file
in
files
%
}
$
(
"
#mark_{{ file[ 'uuid' ] }}
"
).
on
(
"
contextmenu
"
,
function
(){
delete_mark
(
"
{{ file[ 'uuid' ] }}
"
);
}
);
{
%
endfor
%
}
// Information regarding the missing fields for each mark
_
.
forEach
(
mark_missing_informations
,
function
(
missing
,
uuid
)
{
...
...
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