mirror of https://github.com/status-im/codimd.git
Fix history list might check pagination on clear and open
This commit is contained in:
parent
42d684329f
commit
0432fef267
|
@ -107,9 +107,11 @@ $(".ui-history").click(function () {
|
|||
|
||||
function checkHistoryList() {
|
||||
if ($("#history-list").children().length > 0) {
|
||||
$('.pagination').show();
|
||||
$(".ui-nohistory").hide();
|
||||
$(".ui-import-from-browser").hide();
|
||||
} else if ($("#history-list").children().length == 0) {
|
||||
$('.pagination').hide();
|
||||
$(".ui-nohistory").slideDown();
|
||||
getStorageHistory(function (data) {
|
||||
if (data && data.length > 0 && getLoginState() && historyList.items.length == 0) {
|
||||
|
|
Loading…
Reference in New Issue