JS: state_now -> snapshot, both_sides -> both

This commit is contained in:
Stefan Thomas
2013-03-13 09:35:53 +01:00
parent f1e2e2f510
commit 0d5b2eb469

View File

@@ -203,7 +203,7 @@ Request.prototype.rt_accounts = function (accounts) {
return this.accounts(accounts, true);
};
Request.prototype.books = function (books, state) {
Request.prototype.books = function (books, snapshot) {
var procBooks = [];
for (var i = 0, l = books.length; i < l; i++) {
@@ -225,8 +225,8 @@ Request.prototype.books = function (books, state) {
process("taker_gets");
process("taker_pays");
if (state || book["state_now"]) json["state_now"] = true;
if (book["both_sides"]) json["both_sides"] = true;
if (snapshot || book["snapshot"]) json["snapshot"] = true;
if (book["both"]) json["both"] = true;
procBooks.push(json);
}