Changeset 551 in tmcsimulator for trunk/webapps/einotebook/roles
- Timestamp:
- 12/26/2019 03:14:52 PM (6 years ago)
- Location:
- trunk/webapps/einotebook/roles
- Files:
-
- 2 edited
-
index.html (modified) (2 diffs)
-
roles.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/webapps/einotebook/roles/index.html
r548 r551 9 9 <script type="text/javascript" src="roles.js"></script> 10 10 <script type="text/javascript" src="../scripts/cookies.js"></script> 11 <title> Script</title>11 <title>Roles</title> 12 12 </head> 13 13 <body> 14 14 15 < button class="jumpToCurrentEvent"16 onclick="jumpToLastExecutedEvent()">Jump to Current Event</button >15 <!--button class="jumpToCurrentEvent" 16 onclick="jumpToLastExecutedEvent()">Jump to Current Event</button--> 17 17 <!-- A combo box for which role is to be displayed on the page --> 18 18 <select id="desiredRole" onchange="changeRole()"> … … 22 22 <option value="CHP RADIO">CHP RADIO</option> 23 23 </select> 24 <iframe id=' view' src='../script/scrollframe.html' frameborder='0' scrolling='yes'24 <iframe id='rolesview' src='../script/scrollframe.html' frameborder='0' scrolling='yes' 25 25 width='100%'></iframe> 26 26 -
trunk/webapps/einotebook/roles/roles.js
r540 r551 49 49 function highlightLatestEvent() 50 50 { 51 // workaround for defect #212 is disable this function 52 return; 53 51 54 Roles.events.setEmphasis(); // Set text colors on all events 52 55 … … 69 72 Roles.incidents = theIncidents; 70 73 Roles.events = theEvents; 71 Roles.events.win = document.getElementById("view").contentWindow; 72 Roles.events.doc = getDocumentFromFrame('view'); 74 // workaround for defect #212 is delete these two lines so they don't conflict 75 // with the Scripts.events.win 76 //Roles.events.win = document.getElementById("view").contentWindow; 77 //Roles.events.doc = getDocumentFromFrame('view'); 73 78 // reset SELECT box to default value 74 79 document.getElementById("desiredRole").value = "TELEPHONE CONVERSATION"; … … 108 113 109 114 // display events in iframe 110 getDocumentFromFrame(' view').body.innerHTML = html;115 getDocumentFromFrame('rolesview').body.innerHTML = html; 111 116 112 117 // resize iframe to appropriate height … … 150 155 { 151 156 var height = document.documentElement.clientHeight; 152 height -= pageY(document.getElementById(' view'));157 height -= pageY(document.getElementById('rolesview')); 153 158 height = (height < 0) ? 0 : height - 10; 154 document.getElementById(' view').style.height = height + 'px';159 document.getElementById('rolesview').style.height = height + 'px'; 155 160 } 156 161
Note: See TracChangeset
for help on using the changeset viewer.
