projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3576a11
)
Show "no items" after deleting the last task.
author
Jan Schneider
<jan@horde.org>
Tue, 16 Mar 2010 22:43:42 +0000
(23:43 +0100)
committer
Jan Schneider
<jan@horde.org>
Tue, 16 Mar 2010 22:43:42 +0000
(23:43 +0100)
kronolith/js/kronolith.js
patch
|
blob
|
history
diff --git
a/kronolith/js/kronolith.js
b/kronolith/js/kronolith.js
index
67fb01d
..
924da57
100644
(file)
--- a/
kronolith/js/kronolith.js
+++ b/
kronolith/js/kronolith.js
@@
-3331,6
+3331,11
@@
KronolithCore = {
function(r) {
if (r.response.deleted) {
this.removeTask(taskid, tasklist);
+ if ($('kronolithViewTasksBody').select('tr').length > 3) {
+ $('kronolithTasksNoItems').hide();
+ } else {
+ $('kronolithTasksNoItems').show();
+ }
} else {
$('kronolithViewTasksBody').select('tr').find(function(el) {
return el.retrieve('tasklist') == tasklist &&