mirror of
https://github.com/Squidly271/community.applications.git
synced 2025-06-03 14:52:13 +08:00
Fixed: Search results wouldn't always appear after restoring state
This commit is contained in:
parent
37e296bae3
commit
dd0d66da9b
BIN
archive/community.applications-2024.11.11-x86_64-1.txz
Normal file
BIN
archive/community.applications-2024.11.11-x86_64-1.txz
Normal file
Binary file not shown.
@ -2310,6 +2310,7 @@ function restoreState() {
|
|||||||
|
|
||||||
var ca_sortIcon = $.cookie("ca_sortIcon");
|
var ca_sortIcon = $.cookie("ca_sortIcon");
|
||||||
// enableIcon("#sortIcon",ca_sortIcon);
|
// enableIcon("#sortIcon",ca_sortIcon);
|
||||||
|
var restoreDone = false;
|
||||||
post({action:"getSortOrder"},function(sortOrder) {
|
post({action:"getSortOrder"},function(sortOrder) {
|
||||||
$(".sortIcons").removeClass("enabledIcon");
|
$(".sortIcons").removeClass("enabledIcon");
|
||||||
$(".sortIcons").each(function() {
|
$(".sortIcons").each(function() {
|
||||||
@ -2317,9 +2318,11 @@ function restoreState() {
|
|||||||
$(this).addClass("enabledIcon");
|
$(this).addClass("enabledIcon");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
populateAutoComplete();
|
||||||
|
clearMultiInstall();
|
||||||
|
restoreDone = true;
|
||||||
});
|
});
|
||||||
populateAutoComplete();
|
|
||||||
clearMultiInstall();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function disableSearch() {
|
function disableSearch() {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
4763bee372a2a64363268c2dc031cbea ./Apps.page
|
897f3aed48c029ce4699330a1a31af87 ./Apps.page
|
||||||
2defe45163697e40c813a57ae9a50231 ./CA_notices.page
|
2defe45163697e40c813a57ae9a50231 ./CA_notices.page
|
||||||
c12622d8281346d37398e96cbb6b8b69 ./ca_settings.page
|
c12622d8281346d37398e96cbb6b8b69 ./ca_settings.page
|
||||||
01ed7990078dee7cecfeda9a4e49377e ./default.cfg
|
01ed7990078dee7cecfeda9a4e49377e ./default.cfg
|
||||||
7ebc5221c82d6edbbcadd8255854699d ./include/exec.php
|
c4c7f4bd169af5da08163723b14e62ca ./include/exec.php
|
||||||
becfd5ed96c03d27d4f031d7db3546f2 ./include/helpers.php
|
becfd5ed96c03d27d4f031d7db3546f2 ./include/helpers.php
|
||||||
a96f198a1b13229f8728e1ca1da8ee62 ./include/paths.php
|
a96f198a1b13229f8728e1ca1da8ee62 ./include/paths.php
|
||||||
7234caf6800479df03abb222aaedaca5 ./javascript/libraries.js
|
7234caf6800479df03abb222aaedaca5 ./javascript/libraries.js
|
||||||
|
@ -1043,6 +1043,7 @@ function get_content() {
|
|||||||
}
|
}
|
||||||
if ( ! $filter ) {
|
if ( ! $filter ) {
|
||||||
writeJsonFile($caPaths['community-templates-displayed'],$displayApplications);
|
writeJsonFile($caPaths['community-templates-displayed'],$displayApplications);
|
||||||
|
|
||||||
@unlink($caPaths['community-templates-allsearchResults']);
|
@unlink($caPaths['community-templates-allsearchResults']);
|
||||||
@unlink($caPaths['community-templates-catSearchResults']);
|
@unlink($caPaths['community-templates-catSearchResults']);
|
||||||
}
|
}
|
||||||
@ -1180,15 +1181,14 @@ function previous_apps($enableActionCentre=false) {
|
|||||||
} else {
|
} else {
|
||||||
$installed = getPost("installed","");
|
$installed = getPost("installed","");
|
||||||
$filter = getPost("filter","");
|
$filter = getPost("filter","");
|
||||||
|
@unlink($caPaths['community-templates-allSearchResults']);
|
||||||
|
@unlink($caPaths['community-templates-catSearchResults']);
|
||||||
|
@unlink($caPaths['repositoriesDisplayed']);
|
||||||
|
@unlink($caPaths['startupDisplayed']);
|
||||||
|
@unlink($caPaths['dockerSearchActive']);
|
||||||
}
|
}
|
||||||
$info = getAllInfo();
|
$info = getAllInfo();
|
||||||
|
|
||||||
@unlink($caPaths['community-templates-allSearchResults']);
|
|
||||||
@unlink($caPaths['community-templates-catSearchResults']);
|
|
||||||
@unlink($caPaths['repositoriesDisplayed']);
|
|
||||||
@unlink($caPaths['startupDisplayed']);
|
|
||||||
@unlink($caPaths['dockerSearchActive']);
|
|
||||||
|
|
||||||
$file = &$GLOBALS['templates'];
|
$file = &$GLOBALS['templates'];
|
||||||
$extraBlacklist = readJsonFile($caPaths['extraBlacklist']);
|
$extraBlacklist = readJsonFile($caPaths['extraBlacklist']);
|
||||||
$extraDeprecated = readJsonFile($caPaths['extraDeprecated']);
|
$extraDeprecated = readJsonFile($caPaths['extraDeprecated']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user