| Revision 350,
476 bytes
checked in by jdalbey, 7 years ago
(diff) |
|
Add a branch EInotebook for Electronic Instructor Notebook prototype
|
-
Property svn:executable set to
*
|
| Rev | Line | |
|---|
| 1 | var incidents; |
|---|
| 2 | |
|---|
| 3 | /** |
|---|
| 4 | * @return The html for the list of incidents. |
|---|
| 5 | */ |
|---|
| 6 | function incidentsHTML() |
|---|
| 7 | { |
|---|
| 8 | |
|---|
| 9 | var html = ""; |
|---|
| 10 | |
|---|
| 11 | // FOR each incident |
|---|
| 12 | for (var i = 0; i < incidents.length; i++) |
|---|
| 13 | { |
|---|
| 14 | // add incident html |
|---|
| 15 | html += incidents[i].html(); |
|---|
| 16 | } |
|---|
| 17 | |
|---|
| 18 | return html; |
|---|
| 19 | } |
|---|
| 20 | |
|---|
| 21 | function loadSummary(theIncidents) |
|---|
| 22 | { |
|---|
| 23 | incidents = theIncidents; |
|---|
| 24 | // display the list of incidents |
|---|
| 25 | document.getElementById("view").innerHTML = incidentsHTML(); |
|---|
| 26 | window.scrollTo(0, readCookie("summaryScrollY")); |
|---|
| 27 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.