From 4505fb1ffc19fa18b72a28d4a26a3a5bf2e9ef78 Mon Sep 17 00:00:00 2001 From: stefanp Date: Fri, 22 Nov 2002 14:32:46 +0000 Subject: [PATCH] - click on showApi-button calls docapplication/read_action to re-read the application each time a user enters the doc-frameset. - function docfiles aren't stored in their own directory each but moved up to the prototype directory, further regex-parsing of the resuting html-code necessary --- Application/head.skin | 2 +- Application/navig_active.skin | 2 +- DocApplication/actions.js | 9 +++++++-- DocApplication/functions.js | 21 ++++++++++++--------- 4 files changed, 21 insertions(+), 13 deletions(-) diff --git a/Application/head.skin b/Application/head.skin index 1a5b8604..539aac0e 100644 --- a/Application/head.skin +++ b/Application/head.skin @@ -2,7 +2,7 @@ <% this.description prefix="
" %>
-> - /main">showAPI | + /read">showAPI | /render">renderAPI | public | ?app=<% this.title %>&action=flush">flush | diff --git a/Application/navig_active.skin b/Application/navig_active.skin index c35d2472..3c24b3bf 100644 --- a/Application/navig_active.skin +++ b/Application/navig_active.skin @@ -6,7 +6,7 @@
- /main">showAPI | + /read">showAPI | /render">renderAPI | public | ?app=<% this.title %>&action=flush">flush | diff --git a/DocApplication/actions.js b/DocApplication/actions.js index c80a63ff..1087d246 100644 --- a/DocApplication/actions.js +++ b/DocApplication/actions.js @@ -1,3 +1,8 @@ +function read_action () { + this.readApplication (); + res.redirect (this.href("main")); +} + function main_action () { if (checkAddress()==false) return; @@ -44,7 +49,7 @@ function render_action () { return; res.writeln("renderrendering API ... "); var prefix = this.href (""); - this.storePage (this, "main"); + this.storePage (this, "main", "", "index.html"); this.storePage (this, "prototypes"); this.storePage (this, "summary"); this.storePage (this, "functionindex"); @@ -56,7 +61,7 @@ function render_action () { ct += 2; var subarr = arr[i].listChildren (); for (var j=0; j