Changeset 515 in tmcsimulator for trunk/webapps/einotebook/scripts/Event.js
- Timestamp:
- 11/08/2019 11:49:12 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/webapps/einotebook/scripts/Event.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/webapps/einotebook/scripts/Event.js
r418 r515 146 146 function html() 147 147 { 148 //console.log("building html for event: ", this.eventHeaderID, incidentColor[this.incident.number]);148 //console.log("building html for event: ", this.eventHeaderID, this.incident.color); //incidentColor[this.incident.number]); 149 149 150 150 return "<table class='event'>" + 151 151 "<tr>" + 152 "<td class='eventHeader' style='background-color:" + incidentColor[this.incident.number]+ "'" +152 "<td class='eventHeader' style='background-color:" + this.incident.color + "'" + 153 153 "id='" + this.eventHeaderID + "'>" + 154 154 this.headerHTML() + "</td>" + 155 155 "</tr>" + 156 156 "<tr>" + 157 "<td class='eventData' style='background-color:" + incidentColor[this.incident.number]+ "' id='" + this.dataID + "'>" +157 "<td class='eventData' style='background-color:" + this.incident.color + "' id='" + this.dataID + "'>" + 158 158 (this.expanded ? this.dataHTML() : "") + 159 159 "</td>" + … … 187 187 events.doc.getElementById(this.eventHeaderID).style.color = "black"; 188 188 events.doc.getElementById(this.dataID).style.color = "black"; 189 events.doc.getElementById(this.dataID).style.backgroundColor = incidentColor[this.incident.number];189 events.doc.getElementById(this.dataID).style.backgroundColor = this.incident.color; 190 190 191 191 // IF this event is expanded THEN … … 220 220 function normalize() 221 221 { 222 var myColor = incidentColor[this.incident.number];222 var myColor = this.incident.color; 223 223 events.doc.getElementById(this.eventHeaderID).style.backgroundColor = "white"; 224 224 events.doc.getElementById(this.eventHeaderID).style.borderColor = "black";
Note: See TracChangeset
for help on using the changeset viewer.
