Gitlab CSE Unil

Commit 25c336e7 authored by Julien Furrer's avatar Julien Furrer
Browse files

Ajouté confirmation suppression

parent e59902cb
......@@ -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){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment