Fix history list might check pagination on clear and open

This commit is contained in:
Wu Cheng-Han 2017-01-12 17:14:32 +08:00
parent 42d684329f
commit 0432fef267

View file

@ -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) {