Changeset 468 in tmcsimulator for trunk/webapps/einotebook/scripts/Incidents.js


Ignore:
Timestamp:
07/28/2019 05:27:26 AM (7 years ago)
Author:
jdalbey
Message:

einotebook - multifile commit. Redesign to fix timing problem on some machines as well as improve file naming. Fixed #176.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/webapps/einotebook/scripts/Incidents.js

    r359 r468  
    1010//========== public methods ==========// 
    1111incidents.get = incidents_get; 
    12 incidents.collapseAll = incidents_collapseAll; 
    13 incidents.expandAll = incidents_expandAll; 
    1412incidents.add = incidents_add; 
    1513 
     
    3836 
    3937/** 
    40  * Collapses each Incident. 
    41  */ 
    42 function incidents_collapseAll() 
    43 { 
    44         // FOR each incident 
    45         for (var i = 0; i < this.length; i++) 
    46         { 
    47                 // IF the incident is expanded THEN 
    48                 if (this[i].expanded) 
    49                 { 
    50                         // collapse incident 
    51                         this[i].expandAction(); 
    52                 } 
    53         } 
    54 } 
    55  
    56 /** 
    57  * Expands each incident. 
    58  */ 
    59 function incidents_expandAll() 
    60 { 
    61         // FOR each incident 
    62         for (var i = 0; i < this.length; i++) 
    63         { 
    64                 // IF incident is collapsed THEN 
    65                 if (!this[i].expanded) 
    66                 { 
    67                         // expand incident 
    68                         this[i].expandAction(); 
    69                 } 
    70         } 
    71 } 
    72  
    73 /** 
    7438 * Adds an Incident. 
    7539 * @param incident {Incident} The Incident to be added. 
Note: See TracChangeset for help on using the changeset viewer.