Commit 13464399 authored by Nicolas's avatar Nicolas

tout déplier et suppression d'un axe

parent 9e0c2f45
......@@ -55,10 +55,7 @@ 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();
......@@ -438,7 +435,11 @@ window.W = window.W || {};
},
events: {
'blur #title' : 'editTextProperty',
'blur #stage_set': 'editTextProperty'
'blur #stage_set': 'editTextProperty',
//'click .deplieTout': 'deplieTout',
},
deplieTout: function(e){
},
editTextProperty: function(e) {
console.log('íci');
......
......@@ -16,7 +16,7 @@
<h1 contenteditable="true" id="title"><%- title %></h1>
<div contenteditable="true" id="stage_set" ><%= stage_set %></div>
<button class="save">Enregistrer</button>
<button class="deplieTout">Tout déplier</button>
</header>
<ol></ol>
</script>
......@@ -65,7 +65,7 @@
<button class="add">Ajouter</button>
<button class="toggle">(Dé)plier</button>
<button class="effaceAxe">effacer</button>
<button class="effaceAxe">Effacer</button>
</span>
<div class="boucle-infos" class="invis">
......@@ -167,6 +167,11 @@
{
$(this).parent().parent().hide();
});
$('.deplieTout').click(function(){
$('li').attr('data-toggled',false);
});
});
</script>
......
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