mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
comment addded
This commit is contained in:
parent
d246a191c6
commit
c33c6e085e
1 changed files with 8 additions and 1 deletions
|
@ -575,7 +575,14 @@ exports.deletePad = function(padID, callback)
|
||||||
pad.remove(callback);
|
pad.remove(callback);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
restoreRevision(padID, [rev]) Restores revision from past as new changeset
|
||||||
|
|
||||||
|
Example returns:
|
||||||
|
|
||||||
|
{code:0, message:"ok", data:null}
|
||||||
|
{code: 1, message:"padID does not exist", data: null}
|
||||||
|
*/
|
||||||
exports.restoreRevision = function(padID, rev, callback)
|
exports.restoreRevision = function(padID, rev, callback)
|
||||||
{
|
{
|
||||||
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
|
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
|
||||||
|
@ -668,7 +675,7 @@ exports.restoreRevision = function(padID, rev, callback)
|
||||||
//append the changeset
|
//append the changeset
|
||||||
pad.appendRevision(changeset);
|
pad.appendRevision(changeset);
|
||||||
//
|
//
|
||||||
callback(null, changeset);
|
callback(null, null);
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue