From c3ff2b0ba8a68d124363921475bfe737af830af1 Mon Sep 17 00:00:00 2001 From: Max Pozdeev Date: Thu, 26 Aug 2010 18:46:49 +0400 Subject: [PATCH] * added placeholder while manual task reorder --- src/mytinytodo.js | 6 +++++- src/themes/default/style.css | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/mytinytodo.js b/src/mytinytodo.js index 663ec36..0f3da5b 100644 --- a/src/mytinytodo.js +++ b/src/mytinytodo.js @@ -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(); diff --git a/src/themes/default/style.css b/src/themes/default/style.css index ae01f2e..3d8436c 100644 --- a/src/themes/default/style.css +++ b/src/themes/default/style.css @@ -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; }