diff --git a/src/ajax.js b/src/ajax.js index a4fda2c..4e6e811 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -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 += '
