Trivial updates

master
Your Name 2024-07-29 23:03:41 +08:00
parent cd70d97d44
commit d499fa8af2
2 changed files with 7 additions and 1 deletions

View File

@ -21,7 +21,7 @@
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="home-tab" data-bs-toggle="tab" data-bs-target="#home-tab-pane" type="button" role="tab" aria-controls="home-tab-pane" aria-selected="false">偏好設定</button>
<button class="nav-link" id="home-tab" data-bs-toggle="tab" data-bs-target="#home-tab-pane" type="button" role="tab" aria-controls="home-tab-pane" aria-selected="false" onclick="home_tab_clicked();">偏好設定</button>
</li>
<li class="nav-item" role="presentation">

View File

@ -235,6 +235,7 @@ function maxbot_reset_api()
settings = data;
load_settins_to_form(data);
check_unsaved_fields();
run_message("已重設為預設值");
})
.fail(function() {
//alert( "error" );
@ -699,3 +700,8 @@ function run_message(msg)
message.innerText = '';
}, 3000);
}
function home_tab_clicked() {
console.log("clicked");
document.getElementById("homepage").focus();
}