|
@ -663,7 +663,7 @@ static const char management_HTML[] PROGMEM = "<!DOCTYPE html>\ |
|
|
path: node.data.path + \"/\" + data.name,\ |
|
|
path: node.data.path + \"/\" + data.name,\ |
|
|
directory: data.dir\ |
|
|
directory: data.dir\ |
|
|
}\ |
|
|
}\ |
|
|
}\ |
|
|
|
|
|
|
|
|
};\ |
|
|
\ |
|
|
\ |
|
|
return child;\ |
|
|
return child;\ |
|
|
\ |
|
|
\ |
|
@ -775,7 +775,7 @@ static const char management_HTML[] PROGMEM = "<!DOCTYPE html>\ |
|
|
});\ |
|
|
});\ |
|
|
}\ |
|
|
}\ |
|
|
}\ |
|
|
}\ |
|
|
}\ |
|
|
|
|
|
|
|
|
};\ |
|
|
}\ |
|
|
}\ |
|
|
\ |
|
|
\ |
|
|
/* Play */\ |
|
|
/* Play */\ |
|
@ -785,7 +785,7 @@ static const char management_HTML[] PROGMEM = "<!DOCTYPE html>\ |
|
|
var playMode = node.data.directory?\"5\":\"1\";\ |
|
|
var playMode = node.data.directory?\"5\":\"1\";\ |
|
|
postData(\"/exploreraudio?path=\" + node.data.path + \"&playmode=\" + playMode);\ |
|
|
postData(\"/exploreraudio?path=\" + node.data.path + \"&playmode=\" + playMode);\ |
|
|
}\ |
|
|
}\ |
|
|
}\ |
|
|
|
|
|
|
|
|
};\ |
|
|
\ |
|
|
\ |
|
|
/* Refresh */\ |
|
|
/* Refresh */\ |
|
|
items.refresh = {\ |
|
|
items.refresh = {\ |
|
@ -793,7 +793,7 @@ static const char management_HTML[] PROGMEM = "<!DOCTYPE html>\ |
|
|
action: function(x) {\ |
|
|
action: function(x) {\ |
|
|
refreshNode(nodeId);\ |
|
|
refreshNode(nodeId);\ |
|
|
}\ |
|
|
}\ |
|
|
}\ |
|
|
|
|
|
|
|
|
};\ |
|
|
\ |
|
|
\ |
|
|
/* Delete */\ |
|
|
/* Delete */\ |
|
|
items.delete = {\ |
|
|
items.delete = {\ |
|
@ -802,7 +802,7 @@ static const char management_HTML[] PROGMEM = "<!DOCTYPE html>\ |
|
|
handleDeleteData(nodeId);\ |
|
|
handleDeleteData(nodeId);\ |
|
|
refreshNode(ref.get_parent(nodeId));\ |
|
|
refreshNode(ref.get_parent(nodeId));\ |
|
|
}\ |
|
|
}\ |
|
|
}\ |
|
|
|
|
|
|
|
|
};\ |
|
|
\ |
|
|
\ |
|
|
/* Rename */\ |
|
|
/* Rename */\ |
|
|
items.rename = {\ |
|
|
items.rename = {\ |
|
@ -815,7 +815,7 @@ static const char management_HTML[] PROGMEM = "<!DOCTYPE html>\ |
|
|
refreshNode(ref.get_parent(nodeId));\ |
|
|
refreshNode(ref.get_parent(nodeId));\ |
|
|
});\ |
|
|
});\ |
|
|
}\ |
|
|
}\ |
|
|
}\ |
|
|
|
|
|
|
|
|
};\ |
|
|
\ |
|
|
\ |
|
|
return items;\ |
|
|
return items;\ |
|
|
}\ |
|
|
}\ |
|
@ -841,7 +841,7 @@ static const char management_HTML[] PROGMEM = "<!DOCTYPE html>\ |
|
|
directory: data[i].dir\ |
|
|
directory: data[i].dir\ |
|
|
},\ |
|
|
},\ |
|
|
children: []\ |
|
|
children: []\ |
|
|
}\ |
|
|
|
|
|
|
|
|
};\ |
|
|
$('#explorerTree').jstree(true).settings.core.data.children.push(newChild);\ |
|
|
$('#explorerTree').jstree(true).settings.core.data.children.push(newChild);\ |
|
|
}\ |
|
|
}\ |
|
|
\ |
|
|
\ |
|
|