Added colors to pad diff

This commit is contained in:
Peter 'Pita' Martischka 2013-01-27 16:45:09 +00:00
parent dcfb1b2ea4
commit 07a267be7a
6 changed files with 89 additions and 21 deletions

View file

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