Commit b15cc506 authored by Nicolas's avatar Nicolas

effacer

parent 651d0cb5
......@@ -25,6 +25,7 @@ window.W = window.W || {};
},
events: {
'click .effaceAxe': 'effaceAxe',
'blur .axis-title-edit': 'editTitle',
'click .edit': 'editLine',
'click .toggle': 'toggleLine',
......@@ -52,6 +53,13 @@ window.W = window.W || {};
}
},
effaceAxe: function(e){
this.model.destroy();
}
remove: function() {
$(this.el).find('.event').remove();
}
editTitle: function(e) {
var val = $(e.target).text();
console.log(val);
......
......@@ -65,6 +65,8 @@
<button class="add">Ajouter</button>
<button class="toggle">(Dé)plier</button>
<button class="effaceAxe">effacer</button>
</span>
<div class="boucle-infos" class="invis">
boucle de
......
Markdown is supported
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