mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
* do not hide tasks while filtering tasks in list
This commit is contained in:
parent
5b7440680a
commit
38591349dc
1 changed files with 5 additions and 4 deletions
|
|
@ -738,8 +738,10 @@ function loadTasks(opts)
|
|||
if(!curList) return false;
|
||||
setSort(curList.sort, 1);
|
||||
opts = opts || {};
|
||||
$('#tasklist').html('');
|
||||
$('#total').html('...');
|
||||
if(opts.clearTasklist) {
|
||||
$('#tasklist').html('');
|
||||
$('#total').html('0');
|
||||
}
|
||||
|
||||
_mtt.db.request('loadTasks', {
|
||||
list: curList.id,
|
||||
|
|
@ -1082,7 +1084,6 @@ function tabSelected(elementOrId)
|
|||
$('#list_'+id).addClass('mtt-tabs-selected');
|
||||
if(curList.id != id)
|
||||
{
|
||||
$('#tasklist').html('');
|
||||
if(filter.search != '') liveSearchToggle(0, 1);
|
||||
mytinytodo.doAction('listSelected', tabLists.get(id));
|
||||
}
|
||||
|
|
@ -1090,7 +1091,7 @@ function tabSelected(elementOrId)
|
|||
flag.tagsChanged = true;
|
||||
cancelTagFilter(0, 1);
|
||||
setTaskview(0);
|
||||
loadTasks();
|
||||
loadTasks({clearTasklist:1});
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue