From 0d5b2eb46909f0c5cbcebd44dd9369d8c943276e Mon Sep 17 00:00:00 2001 From: Stefan Thomas Date: Wed, 13 Mar 2013 09:35:53 +0100 Subject: [PATCH] JS: state_now -> snapshot, both_sides -> both --- src/js/remote.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/remote.js b/src/js/remote.js index 25c6d7a29..5e4326667 100644 --- a/src/js/remote.js +++ b/src/js/remote.js @@ -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); }