mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-15 03:26:53 -04:00
teampad feature
This commit is contained in:
parent
0f2d542bbe
commit
9212a39cff
14 changed files with 871 additions and 4 deletions
|
@ -38,6 +38,7 @@ var Pad = function Pad(id) {
|
|||
this.head = -1;
|
||||
this.chatHead = -1;
|
||||
this.publicStatus = false;
|
||||
this.teamStatus = false;
|
||||
this.passwordHash = null;
|
||||
this.id = id;
|
||||
this.savedRevisions = [];
|
||||
|
@ -551,6 +552,15 @@ Pad.prototype.getSavedRevisions = function getSavedRevisions() {
|
|||
return this.savedRevisions;
|
||||
};
|
||||
|
||||
Pad.prototype.getTeamStatus = function getTeamStatus() {
|
||||
return this.teamStatus;
|
||||
};
|
||||
|
||||
Pad.prototype.setTeamStatus = function setTeamStatus(teamStatus) {
|
||||
this.teamStatus = teamStatus;
|
||||
this.saveToDatabase();
|
||||
};
|
||||
|
||||
/* Crypto helper methods */
|
||||
|
||||
function hash(password, salt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue