tasks content visibility can be toggled

This commit is contained in:
Suraj patil 2016-01-10 19:28:24 +05:30
parent 8c0d0dc0fe
commit abdcc8f764
3 changed files with 13 additions and 3 deletions

View File

@ -142,6 +142,14 @@ hr{
.noteContent {
padding-top: 7px;
font-size: 0.9em;
display: none;
}
.toggle{
height: 30px;
padding:1px;
margin-top:-30px;
float:right;
}
.notefooter{

View File

@ -40,5 +40,7 @@ $(document).ready(function(){
}
}
);*/
$('.toggle').click(function(){
$(this).next().toggle();
});
});

View File

@ -34,8 +34,8 @@
<div class="timeline">
{{ if .Tasks}} {{range .Tasks}}
<div class="note">
<p class="noteHeading">{{.Title}}</p>
<hr>
<p class="noteHeading">{{.Title}}</p> <button class="toggle btn btn-primary">toggle</button>
<p class="noteContent">{{.Content}}</p>
<span class="notefooter">
<ul class="menu">