mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
* added placeholder while manual task reorder
This commit is contained in:
parent
10e26cd6b9
commit
c3ff2b0ba8
2 changed files with 10 additions and 1 deletions
|
|
@ -315,7 +315,11 @@ var mytinytodo = window.mytinytodo = _mtt = {
|
|||
});
|
||||
}
|
||||
|
||||
$("#tasklist").sortable({cancel:'span,input,a,textarea', delay: 150, update:orderChanged, start:sortStart, items:'> :not(.task-completed)'});
|
||||
$("#tasklist").sortable({
|
||||
items:'> :not(.task-completed)', cancel:'span,input,a,textarea',
|
||||
delay:150, start:sortStart, update:orderChanged,
|
||||
placeholder:'mtt-task-placeholder'
|
||||
});
|
||||
|
||||
$("#lists ul").sortable({delay:150, update:listOrderChanged});
|
||||
this.applySingletab();
|
||||
|
|
|
|||
|
|
@ -170,6 +170,11 @@ li.task-completed .task-title a { color:#777777; }
|
|||
li.task-completed { opacity:0.8; }
|
||||
li.task-completed .task-toggle { opacity:0.8; }
|
||||
li.not-in-tagpreview { opacity:0.1; }
|
||||
#tasklist li.mtt-task-placeholder {
|
||||
min-height:0px; padding:0px; height:18px; line-height:18px;
|
||||
background-color:#FDD017; border:1px solid #FBB917;
|
||||
-moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px;
|
||||
}
|
||||
|
||||
a.taskactionbtn { display:block; float:right; height:15px; width:15px; text-decoration:none; background:url(images/icons.gif) 0 0 no-repeat; }
|
||||
li:hover a.taskactionbtn, a.taskactionbtn.mtt-menu-button-active { background-position:-16px 0; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue