Commit 4f9d1ca6 authored by Tristan Cavelier's avatar Tristan Cavelier

dashboard original metadata lost with a script fix

parent 589f75df
...@@ -377,10 +377,10 @@ function scriptRemoveAllDocs() { ...@@ -377,10 +377,10 @@ function scriptRemoveAllDocs() {
return command("allDocs").then(function (answer) { return command("allDocs").then(function (answer) {
return RSVP.all(answer.data.rows.map(function (row) { return RSVP.all(answer.data.rows.map(function (row) {
select("#metadata").value = JSON.stringify({"_id": row.id}); select("#metadata").value = JSON.stringify({"_id": row.id});
return command("remove"); var ret = command("remove");
}));; select('#metadata').value = original_metadata_value;
}).then(function () { return ret;
select('#metadata').value = original_metadata_value; }));
}); });
} }
//--> //-->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment