Gitlab CSE Unil
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
M. Chardon
ADIM
Commits
25c336e7
Commit
25c336e7
authored
Apr 24, 2015
by
Julien Furrer
Browse files
Ajouté confirmation suppression
parent
e59902cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
adim_app/static/_src/anobj-mgr/views/anobj/list-item.js
View file @
25c336e7
...
...
@@ -78,6 +78,8 @@ function($, _, Backbone){
if
(
!
confirm
(
"
Vous allez supprimer l'image en cours d'édition
"
))
{
return
;
}
}
else
{
if
(
!
confirm
(
"
Supprimer définitivement l'image et ses annotations ?
"
))
return
;
}
var
nextSelectedItem
=
null
,
...
...
@@ -92,9 +94,6 @@ function($, _, Backbone){
}
}
// console.log(nextSelectedItem);
// return false;
me
.
model
.
destroy
({
wait
:
true
,
success
:
function
(
model
){
...
...
Write
Preview
Supports
Markdown
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