| Revision 468,
519 bytes
checked in by jdalbey, 7 years ago
(diff) |
|
einotebook - multifile commit. Redesign to fix timing problem on some machines as well as improve file naming. Fixed #176.
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | /** functions for Incident Summary page */ |
|---|
| 2 | var incidents; |
|---|
| 3 | |
|---|
| 4 | /** |
|---|
| 5 | * @return The html for the list of incidents. |
|---|
| 6 | */ |
|---|
| 7 | function incidentsHTML() |
|---|
| 8 | { |
|---|
| 9 | |
|---|
| 10 | var html = ""; |
|---|
| 11 | |
|---|
| 12 | // FOR each incident |
|---|
| 13 | for (var i = 0; i < incidents.length; i++) |
|---|
| 14 | { |
|---|
| 15 | // add incident html |
|---|
| 16 | html += incidents[i].html(); |
|---|
| 17 | } |
|---|
| 18 | |
|---|
| 19 | return html; |
|---|
| 20 | } |
|---|
| 21 | |
|---|
| 22 | function loadSummary(theIncidents) |
|---|
| 23 | { |
|---|
| 24 | incidents = theIncidents; |
|---|
| 25 | // display the list of incidents |
|---|
| 26 | document.getElementById("view").innerHTML = incidentsHTML(); |
|---|
| 27 | window.scrollTo(0, readCookie("summaryScrollY")); |
|---|
| 28 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.