mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
* clear tasklist before load
This commit is contained in:
parent
629431a7fb
commit
7246961755
1 changed files with 2 additions and 1 deletions
|
|
@ -31,6 +31,7 @@ function loadTasks()
|
|||
if(!curList) return false;
|
||||
setSort(curList.sort, 1);
|
||||
var tz = -1 * (new Date()).getTimezoneOffset();
|
||||
$('#tasklist').html('');
|
||||
setAjaxErrorTrigger();
|
||||
var search = filter.search ? '&s='+encodeURIComponent(filter.search) : '';
|
||||
var tag = filter.tag ? '&t='+encodeURIComponent(filter.tag) : '';
|
||||
|
|
@ -938,13 +939,13 @@ function loadLists(onInit, updAccess)
|
|||
$('#page_tasks h3').children().addClass('invisible');
|
||||
$('#mylistscontainer .mtt-need-list').addClass('mtt-disabled');
|
||||
$('#rss_icon').hide();
|
||||
$('#tasklist').html('');
|
||||
}
|
||||
ti += '<li class="mtt-tabs-button menu-owner"><a href="#" id="mylists" onClick="btnMenu(this);return false;"><span><img src="images/arrdown.gif"></span></a></li>';
|
||||
$('#lists>ul').html(ti);
|
||||
$('#lists').show();
|
||||
});
|
||||
$('#page_tasks').hide();
|
||||
$('#tasklist').html('');
|
||||
if(updAccess) updateAccessStatus();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue