summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/client.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/client.js b/web/client.js
index caa463d..f66b717 100644
--- a/web/client.js
+++ b/web/client.js
@@ -425,7 +425,9 @@ $(function() {
else newIndex++;
objRequest(path, {type: "POST", data: {
- index: newIndex, data: join(path, oldIndex)
+ index: newIndex,
+ data: isTreeNode(data.meta.members) ?
+ join(path, oldIndex) : value
}}).done(function() {
data.data.splice(newIndex - 1, 0, value);