Merge branch '2.x' into bugfix/two_dots

This commit is contained in:
KodeStar
2024-11-05 10:44:15 +00:00
committed by GitHub
4 changed files with 8 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ namespace App;
use Cache;
use Form;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Request as Input;
use Yaml;
abstract class Search
@@ -106,7 +107,7 @@ abstract class Search
if ((bool) $homepage_search !== true) {
return $output;
}
$user_search_provider = $user_search_provider ?? 'none';
$user_search_provider = Input::get('p') ?? $user_search_provider ?? 'none';
if ((bool) $search_provider) {
if ((bool) $user_search_provider) {
@@ -124,7 +125,7 @@ abstract class Search
$output .= '</select>';
$output .= Form::text(
'q',
null,
Input::get('q') ?? null,
[
'class' => 'homesearch',
'autofocus' => 'autofocus',

2
public/js/app.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -129,7 +129,7 @@ $.when($.ready).then(() => {
}
})
.on("change", "select[name=provider]", function () {
const items = $("#sortable").children(".item-container");
const items = $("#sortable").find(".item-container");
if ($(this).val() === "tiles") {
$("#search-container button").hide();
const search = $("#search-container input[name=q]").val();
@@ -150,6 +150,8 @@ $.when($.ready).then(() => {
}
});
$("#search-container select[name=provider]").trigger("change");
$("#app")
.on("click", "#config-button", (e) => {
e.preventDefault();

File diff suppressed because one or more lines are too long