mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 03:57:07 +03:00
sort entries in nvs editor
This commit is contained in:
@@ -666,7 +666,7 @@ function checkStatus(){
|
|||||||
|
|
||||||
function getConfig() {
|
function getConfig() {
|
||||||
$.getJSON("/config.json", function(data) {
|
$.getJSON("/config.json", function(data) {
|
||||||
for (var key in data) {
|
Object.keys(data).sort().forEach(function(key, i) {
|
||||||
if (data.hasOwnProperty(key)) {
|
if (data.hasOwnProperty(key)) {
|
||||||
if (key == 'autoexec') {
|
if (key == 'autoexec') {
|
||||||
if (data["autoexec"] === "1") {
|
if (data["autoexec"] === "1") {
|
||||||
@@ -691,7 +691,7 @@ function getConfig() {
|
|||||||
);
|
);
|
||||||
$("input#"+key).val(data[key]);
|
$("input#"+key).val(data[key]);
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
$("tbody#nvsTable").append(
|
$("tbody#nvsTable").append(
|
||||||
"<tr>"+
|
"<tr>"+
|
||||||
"<td>"+
|
"<td>"+
|
||||||
|
|||||||
Reference in New Issue
Block a user