Handle empty folder correctly

Former-commit-id: e9afb03229e43f16fb6927f90abcb4a15e09fc5f [formerly b08fb5e47ebf28a496cf00a74e6c3bf07b6cd991]
Former-commit-id: 0384909dd279ed58e964aa3f8dbc8c6ef7099f42
This commit is contained in:
Jaifroid 2018-02-07 16:38:44 +00:00
parent 9cb06f0c15
commit d3959bb92a

View File

@ -1282,9 +1282,12 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies', 'q', 'module'
} }
} }
archiveDisplay.style.display = "inline"; archiveDisplay.style.display = "inline";
document.getElementById('noZIMFound').style.display = "inline"; document.getElementById('noZIMFound').style.display = "block";
document.getElementById('openLocalFiles').style.display = "none";
document.getElementById('rescanStorage').style.display = "block";
document.getElementById('archiveList').options.length = 0; document.getElementById('archiveList').options.length = 0;
document.getElementById('archiveList').size = 0; document.getElementById('archiveList').size = 0;
document.getElementById('archiveNumber').innerHTML = "<b>0</b> Archives";
params.pickedFolder = ""; params.pickedFolder = "";
Windows.Storage.AccessCache.StorageApplicationPermissions.futureAccessList.remove(params.falFolderToken); Windows.Storage.AccessCache.StorageApplicationPermissions.futureAccessList.remove(params.falFolderToken);
return; return;