mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
suggestion
This commit is contained in:
parent
eb611e2b36
commit
c93acdfc87
1 changed files with 5 additions and 1 deletions
|
@ -85,7 +85,6 @@ var padList = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//initialises the allknowing data structure
|
//initialises the allknowing data structure
|
||||||
padList.init();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An array of padId transformations. These represent changes in pad name policy over
|
* An array of padId transformations. These represent changes in pad name policy over
|
||||||
|
@ -159,6 +158,11 @@ exports.getPad = function(id, text, callback)
|
||||||
|
|
||||||
exports.listAllPads = function(callback)
|
exports.listAllPads = function(callback)
|
||||||
{
|
{
|
||||||
|
// console.warn("list all pads")
|
||||||
|
if(!padList.list.length == 0){ // If we haven't populated the padList.list yet
|
||||||
|
// console.warn("pad list is empty, filling it");
|
||||||
|
padList.init();
|
||||||
|
}
|
||||||
if(callback != null){
|
if(callback != null){
|
||||||
callback(null,{padIDs: padList.getPads()});
|
callback(null,{padIDs: padList.getPads()});
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue