mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-15 03:26:53 -04:00
Merge ff88c19fc1
into e87843c5ae
This commit is contained in:
commit
ea0751c16e
2 changed files with 19 additions and 0 deletions
|
@ -460,6 +460,24 @@ exports.getReadOnlyID = function(padID, callback)
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
getPadID(readonlyID) returns the normal link of a pad
|
||||
|
||||
Example returns:
|
||||
|
||||
{code: 0, message:"ok", data: null}
|
||||
{code: 1, message:"padID does not exist", data: null}
|
||||
*/
|
||||
exports.getPadID = function(roID, callback)
|
||||
{
|
||||
//get the PadId
|
||||
readOnlyManager.getPadId(roID, function(err, PadId)
|
||||
{
|
||||
if(ERR(err, callback)) return;
|
||||
callback(null, {PadID: PadId});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
setPublicStatus(padID, publicStatus) sets a boolean for the public status of a pad
|
||||
|
||||
|
|
|
@ -198,6 +198,7 @@ var version =
|
|||
, "getRevisionsCount" : ["padID"]
|
||||
, "getLastEdited" : ["padID"]
|
||||
, "deletePad" : ["padID"]
|
||||
, "getPadID" : ["roID"]
|
||||
, "getReadOnlyID" : ["padID"]
|
||||
, "setPublicStatus" : ["padID", "publicStatus"]
|
||||
, "getPublicStatus" : ["padID"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue