and semi working

This commit is contained in:
John McLear 2013-01-22 23:37:53 +00:00
parent 3fb2f02875
commit f1b9c213ee
3 changed files with 47 additions and 3 deletions

View file

@ -92,7 +92,7 @@ function getPadHTML(pad, revNum, callback)
exports.getPadHTML = getPadHTML;
function getHTMLFromAtext(pad, atext)
exports.getHTMLFromAtext = function(pad, atext)
{
var apool = pad.apool();
var textLines = atext.text.slice(0, -1).split('\n');

View file

@ -244,14 +244,17 @@ PadDiff.prototype.getHtml = function(callback){
},
//get the authorColor table
function(callback){
self._pad.getAllAuthorColors(function(err, _authorColors){
/*
self._pad.getAllAuthorColors(function(err, _authorColors){ // TODO
if(err){
return callback(err);
}
authorColors = _authorColors;
callback();
});
*/
authorColors = {};
callback();
},
//convert the atext to html
function(callback){