cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: rev 76181 - in cocoon/branches/BRANCH_2_1_X/src/blocks/tour/samples: bean-editor/cocoon-app/flow flow/multi-page
Date Wed, 17 Nov 2004 23:00:09 GMT
Author: bdelacretaz
Date: Wed Nov 17 15:00:04 2004
New Revision: 76181

Modified:
   cocoon/branches/BRANCH_2_1_X/src/blocks/tour/samples/bean-editor/cocoon-app/flow/tour.js
   cocoon/branches/BRANCH_2_1_X/src/blocks/tour/samples/flow/multi-page/multi-page.js
Log:
fix missing var statement in flowscript variable declarations

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/tour/samples/bean-editor/cocoon-app/flow/tour.js
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/tour/samples/bean-editor/cocoon-app/flow/tour.js
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/tour/samples/bean-editor/cocoon-app/flow/tour.js
Wed Nov 17 15:00:04 2004
@@ -24,7 +24,7 @@
 
 // Query all TaskBean objects and display them
 function query_allTasks() {
-    list = db.getTasks();
+    var list = db.getTasks();
 
     cocoon.sendPage("internal/generate-view/taskList", {
         title : "List of tasks",
@@ -35,15 +35,15 @@
 
 // Query a single TaskBean object and display it
 function query_singleTask() {
-    id = cocoon.request.getParameter("taskId");
-    bean = db.getTaskBeanById(id);
+    var id = cocoon.request.getParameter("taskId");
+    var bean = db.getTaskBeanById(id);
     displayTaskBean(id,bean);
 }
 
 // Edit a single TaskBean object using Cocoon Forms
 function singleTaskEditor(form) {
-    id = cocoon.request.getParameter("taskId");
-    bean = db.getTaskBeanById(id);
+    var id = cocoon.request.getParameter("taskId");
+    var bean = db.getTaskBeanById(id);
 
     form.load(bean);
     form.showForm("internal/show-form/singleTask");

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/tour/samples/flow/multi-page/multi-page.js
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/tour/samples/flow/multi-page/multi-page.js	(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/tour/samples/flow/multi-page/multi-page.js	Wed
Nov 17 15:00:04 2004
@@ -33,7 +33,7 @@
     while(true) {
 
         // decide which page to show based on request parameters
-        page = "page1";
+        var page = "page1";
         if(cocoon.request.getParameter("action_send") != null) {
             break;
         } else if(cocoon.request.getParameter("action_page2") != null) {
@@ -45,7 +45,7 @@
 
         // now for the boring part: copy form data into message
         // that's where Forms bindings would help
-        tmp = cocoon.request.getParameter("sender");
+        var tmp = cocoon.request.getParameter("sender");
         if(tmp != null) message.sender = tmp;
 
         tmp = cocoon.request.getParameter("subject");
@@ -57,4 +57,4 @@
 
     // user selected "send", show message contents
     cocoon.sendPage("multi-page/views/result", { "message" : message });
-}
\ No newline at end of file
+}

Mime
View raw message