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() {
return command("allDocs").then(function (answer) {
return RSVP.all(answer.data.rows.map(function (row) {
select("#metadata").value = JSON.stringify({"_id": row.id});
return command("remove");
}));;
}).then(function () {
select('#metadata').value = original_metadata_value;
var ret = command("remove");
select('#metadata').value = original_metadata_value;
return ret;
}));
});
}
//-->
......
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