Skip to content

Commit

Permalink
Merge branch 'jxxghp:dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
thsrite authored Feb 8, 2023
2 parents 79ea2c9 + 2c28d49 commit 63dc123
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions web/templates/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -1572,10 +1572,13 @@ <h5 class="modal-title">高级搜索</h5>
}


function refresh_site_options(obj_id) {
function refresh_site_options(obj_id, show_all=false) {
ajax_post("get_indexers", {check: true, basic: true}, function (ret) {
if (ret.code === 0) {
let site_options = '';
if (show_all) {
site_options += `<option value="">全部</option>`;
}
for (let indexer of ret.indexers) {
site_options += `<option value="${indexer.name}">${indexer.name}</option>`;
}
Expand Down Expand Up @@ -1690,7 +1693,7 @@ <h5 class="modal-title">高级搜索</h5>

// 显示高级搜索框
function show_search_advanced_modal() {
refresh_site_options("advanced_search_site");
refresh_site_options("advanced_search_site", true);
refresh_filter_select("advanced_search_rule");
$("#modal-search-advanced").modal("show");
}
Expand Down

0 comments on commit 63dc123

Please sign in to comment.