Changeset 515 in tmcsimulator for trunk/webapps/einotebook/scripts/LoadEvents.js
- Timestamp:
- 11/08/2019 11:49:12 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/webapps/einotebook/scripts/LoadEvents.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/webapps/einotebook/scripts/LoadEvents.js
r468 r515 42 42 if (incidents.get(incidentNum) == undefined) 43 43 { 44 // prepare title field 44 45 incidentTitle = currEvt.childNodes[child].textContent; 46 // select a color from the pallette 47 var palletteSize = incidents.colorpallette.length; 48 var currColor = incidents.colorpallette[incidents.size()]; // modulo palleteSize 45 49 // Construct the incident 46 var theIncident = new Incident(evtTime, incidentNum, incidentTitle, "" );50 var theIncident = new Incident(evtTime, incidentNum, incidentTitle, "", currColor); 47 51 // Add the incident to the list of incidents 48 52 incidents.add(theIncident);
Note: See TracChangeset
for help on using the changeset viewer.
