moved the actual rendering part in render_action into functions.js

This commit is contained in:
stefanp 2004-01-06 15:47:22 +00:00
parent c57356a5cb
commit 08d3a94429

View file

@ -46,29 +46,13 @@ function render_action () {
// set res.data.rendering, this will suppress the link back to the manage // set res.data.rendering, this will suppress the link back to the manage
// console in the apidocs actions // console in the apidocs actions
res.data.rendering = true; res.data.rendering = true;
if (checkAddress()==false) if (checkAddress()==false)
return; return;
if (checkAuth(this.getParentElement ())==false) if (checkAuth(this.getParentElement ())==false)
return; return;
var prefix = this.href (""); var ct = this.renderApi();
this.storePage (this, "main", "", "index.html"); res.data.body = '<body>rendering API ...<br/>wrote ' + ct + ' files<br/><br/>';
this.storePage (this, "prototypes"); res.data.body += '<a href="' + root.href ("main") + '">back to manage console</a>';
this.storePage (this, "summary");
this.storePage (this, "functionindex");
var ct = 4;
var arr = this.listChildren ();
for (var i=0; i<arr.length; i++) {
this.storePage (arr[i], "list", "../");
this.storePage (arr[i], "main", "../");
ct += 2;
var subarr = arr[i].listChildren ();
for (var j=0; j<subarr.length; j++) {
this.storePage (subarr[j], "main", "../", subarr[j].getElementName () + ".html");
ct += 1;
}
}
res.data.body = '<body>rendering API ...<br/>wrote ' + ct + ' files<br/><br/>';
res.data.body += '<a href="' + root.href ("main") + '">back to manage console</a>';
res.data.title = "rendering helma api"; res.data.title = "rendering helma api";
res.data.head = renderSkinAsString("head"); res.data.head = renderSkinAsString("head");
renderSkin ("basic"); renderSkin ("basic");