mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
blah use async
This commit is contained in:
parent
7cf0e4a9ae
commit
f2c155ee1a
1 changed files with 28 additions and 28 deletions
|
@ -426,8 +426,9 @@ exports.getPadHTMLDocument = function (padId, revNum, noDocType, callback)
|
|||
if(ERR(err, callback)) return;
|
||||
|
||||
// Include some Styles into the Head for Export
|
||||
var stylesForExport = hooks.callAllStr("stylesForExport", padId) || ''
|
||||
hooks.aCallAll("stylesForExport", padId, function(err, stylesForExport){
|
||||
|
||||
// Core inclusion of head etc.
|
||||
var head =
|
||||
(noDocType ? '' : '<!doctype html>\n') +
|
||||
'<html lang="en">\n' + (noDocType ? '' : '<head>\n' +
|
||||
|
@ -448,7 +449,6 @@ exports.getPadHTMLDocument = function (padId, revNum, noDocType, callback)
|
|||
stylesForExport +
|
||||
'</style>\n' + '</head>\n') +
|
||||
'<body>';
|
||||
|
||||
var foot = '</body>\n</html>\n';
|
||||
|
||||
getPadHTML(pad, revNum, function (err, html)
|
||||
|
@ -456,7 +456,7 @@ exports.getPadHTMLDocument = function (padId, revNum, noDocType, callback)
|
|||
if(ERR(err, callback)) return;
|
||||
callback(null, head + html + foot);
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue