support direct search links

This commit is contained in:
Squidly271 2022-01-26 18:41:30 -05:00
parent 9aa35e7696
commit d841ff0fd2
6 changed files with 12 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View File

@ -169,6 +169,7 @@ var repoBannerTimer = false;
var unRaidFontSize = $("html").css("font-size").replace("px","");
var resizeTimer;
var portsInUse = [];
var startupSearch = "<?=$_GET['search']?>";
$(function(){
window.onerror = function(msg,url,lineNo,columnNo, error) {
@ -772,8 +773,14 @@ function updateContent(button) {
if ( result.data ) {
updateDisplay(result.data);
} else {
data.searchActive = true;
getContent(true,'INITIALIZE',"","",startupScreen);
data.searchActive = false;
if ( startupSearch ) {
doSearch(false,startupSearch);
populateAutoComplete();
startupSearch = "";
} else {
getContent(true,'INITIALIZE',"","",startupScreen);
}
}
}
getCategories();

View File

@ -1,8 +1,8 @@
3deaf5c3ef5408ed993f966535d22e10 ./Apps.page
695e1022750899e994ea4779f35df68c ./Apps.page
4e55f7483b661af21a25b677179baffe ./CA_notices.page
c7c6da0a4a4a7ac33f387ea178319bae ./ca_settings.page
ed2883d6c44c19304c431079596a1731 ./default.cfg
288739a1b459844068bcae9f69a04d5e ./include/exec.php
800135166b003221870a39d78f2b2e9e ./include/exec.php
dcac83839748f62d4e741a36f338d4f4 ./include/helpers.php
d827ebdf8c29aa6a9818df043a37721e ./include/paths.php
532fffdf939594c143e679da02bd841e ./javascript/libraries.js

View File

@ -643,7 +643,7 @@ function get_content() {
}
if ( empty($file)) return;
if ( $category === "/NONE/i" ) {
if ( !$filter && $category === "/NONE/i" ) {
file_put_contents($caPaths['startupDisplayed'],"startup");
$displayApplications = [];
$displayApplications['community'] = [];