diff --git a/index.html b/index.html
index 99244436..cefa8bd1 100644
--- a/index.html
+++ b/index.html
@@ -142,7 +142,6 @@
@@ -253,42 +246,39 @@
div.appendChild(table);
});
}
- function loadMounts() {
- fetch('/mounts')
- .then(r => r.json())
- .then(data => {
- const select = document.getElementById('mount-select');
- const selectAdvanced = document.getElementById('mount-select-advanced');
- const selectBranches = document.getElementById('mount-select-branches');
- [select, selectAdvanced, selectBranches].forEach(s => {
- s.innerHTML = '';
- data.forEach(m => {
- const opt = document.createElement('option');
- opt.value = m;
- opt.text = m;
- s.appendChild(opt);
- });
- });
- const onchangeFunc = function() {
- const mount = this.value;
- loadKV(mount);
- };
- const onchangeBranchesFunc = function() {
- const mount = this.value;
- loadBranches(mount);
- };
- select.onchange = onchangeFunc;
- selectAdvanced.onchange = onchangeFunc;
- selectBranches.onchange = onchangeBranchesFunc;
- if (data.length > 0) {
- select.value = data[0];
- selectAdvanced.value = data[0];
- selectBranches.value = data[0];
- loadKV(data[0]);
- loadBranches(data[0]);
- }
- });
- }
+ function loadMounts() {
+ fetch('/mounts')
+ .then(r => r.json())
+ .then(data => {
+ const selectAdvanced = document.getElementById('mount-select-advanced');
+ const selectBranches = document.getElementById('mount-select-branches');
+ [selectAdvanced, selectBranches].forEach(s => {
+ s.innerHTML = '';
+ data.forEach(m => {
+ const opt = document.createElement('option');
+ opt.value = m;
+ opt.text = m;
+ s.appendChild(opt);
+ });
+ });
+ const onchangeFunc = function() {
+ const mount = this.value;
+ loadKV(mount);
+ };
+ const onchangeBranchesFunc = function() {
+ const mount = this.value;
+ loadBranches(mount);
+ };
+ selectAdvanced.onchange = onchangeFunc;
+ selectBranches.onchange = onchangeBranchesFunc;
+ if (data.length > 0) {
+ selectAdvanced.value = data[0];
+ selectBranches.value = data[0];
+ loadKV(data[0]);
+ loadBranches(data[0]);
+ }
+ });
+ }
function loadBranches(mount) {
let url = '/kvs?mount=' + encodeURIComponent(mount);
fetch(url)