diff options
author | Stefan <stefan@stefans-entwicklerecke.de> | 2015-03-15 14:51:27 +0100 |
---|---|---|
committer | Stefan <stefan@stefans-entwicklerecke.de> | 2015-03-15 14:51:27 +0100 |
commit | b9cdf4352b957b9127b6404af8b0078cb3309f0b (patch) | |
tree | dfc3eb947a19d229b8109a15bbf6b1e2c07c18cb /src/node/db/Pad.js | |
parent | fb980031ba36f992d6f484266771d2fa87dfbda0 (diff) | |
parent | c0260bcc40e93e9a47a20aada86a8513776f2e17 (diff) | |
download | etherpad-lite-b9cdf4352b957b9127b6404af8b0078cb3309f0b.zip |
Merge pull request #2552 from ether/release/1.5.2
Release/1.5.2
Diffstat (limited to 'src/node/db/Pad.js')
-rw-r--r-- | src/node/db/Pad.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/node/db/Pad.js b/src/node/db/Pad.js index 2f5860f8..53847600 100644 --- a/src/node/db/Pad.js +++ b/src/node/db/Pad.js @@ -54,6 +54,21 @@ Pad.prototype.getHeadRevisionNumber = function getHeadRevisionNumber() { return this.head; }; +Pad.prototype.getSavedRevisionsNumber = function getSavedRevisionsNumber() { + return this.savedRevisions.length; +}; + +Pad.prototype.getSavedRevisionsList = function getSavedRevisionsList() { + var savedRev = new Array(); + for(var rev in this.savedRevisions){ + savedRev.push(this.savedRevisions[rev].revNum); + } + savedRev.sort(function(a, b) { + return a - b; + }); + return savedRev; +}; + Pad.prototype.getPublicStatus = function getPublicStatus() { return this.publicStatus; }; |