Fixed: Search results wouldn't always appear after restoring state

This commit is contained in:
Squidly271 2024-11-11 08:34:54 -05:00
parent 37e296bae3
commit dd0d66da9b
4 changed files with 14 additions and 11 deletions

Binary file not shown.

View File

@ -2310,6 +2310,7 @@ function restoreState() {
var ca_sortIcon = $.cookie("ca_sortIcon");
// enableIcon("#sortIcon",ca_sortIcon);
var restoreDone = false;
post({action:"getSortOrder"},function(sortOrder) {
$(".sortIcons").removeClass("enabledIcon");
$(".sortIcons").each(function() {
@ -2317,9 +2318,11 @@ function restoreState() {
$(this).addClass("enabledIcon");
}
});
populateAutoComplete();
clearMultiInstall();
restoreDone = true;
});
populateAutoComplete();
clearMultiInstall();
}
function disableSearch() {

View File

@ -1,8 +1,8 @@
4763bee372a2a64363268c2dc031cbea ./Apps.page
897f3aed48c029ce4699330a1a31af87 ./Apps.page
2defe45163697e40c813a57ae9a50231 ./CA_notices.page
c12622d8281346d37398e96cbb6b8b69 ./ca_settings.page
01ed7990078dee7cecfeda9a4e49377e ./default.cfg
7ebc5221c82d6edbbcadd8255854699d ./include/exec.php
c4c7f4bd169af5da08163723b14e62ca ./include/exec.php
becfd5ed96c03d27d4f031d7db3546f2 ./include/helpers.php
a96f198a1b13229f8728e1ca1da8ee62 ./include/paths.php
7234caf6800479df03abb222aaedaca5 ./javascript/libraries.js

View File

@ -1043,6 +1043,7 @@ function get_content() {
}
if ( ! $filter ) {
writeJsonFile($caPaths['community-templates-displayed'],$displayApplications);
@unlink($caPaths['community-templates-allsearchResults']);
@unlink($caPaths['community-templates-catSearchResults']);
}
@ -1180,15 +1181,14 @@ function previous_apps($enableActionCentre=false) {
} else {
$installed = getPost("installed","");
$filter = getPost("filter","");
@unlink($caPaths['community-templates-allSearchResults']);
@unlink($caPaths['community-templates-catSearchResults']);
@unlink($caPaths['repositoriesDisplayed']);
@unlink($caPaths['startupDisplayed']);
@unlink($caPaths['dockerSearchActive']);
}
$info = getAllInfo();
@unlink($caPaths['community-templates-allSearchResults']);
@unlink($caPaths['community-templates-catSearchResults']);
@unlink($caPaths['repositoriesDisplayed']);
@unlink($caPaths['startupDisplayed']);
@unlink($caPaths['dockerSearchActive']);
$file = &$GLOBALS['templates'];
$extraBlacklist = readJsonFile($caPaths['extraBlacklist']);
$extraDeprecated = readJsonFile($caPaths['extraDeprecated']);