~oh-dev/openhealth/phit-tools

« back to all changes in this revision

Viewing changes to ihris-suite/lib/ihris-common/scripts/view.js

  • Committer: litlfred at ibiblio
  • Date: 2009-10-23 12:59:28 UTC
  • Revision ID: litlfred@ibiblio.org-20091023125928-u5lkafz0urm9t8eq
updated ihris-suite to 4.0.1-prerelease -- not debugged

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
function hideDiv( id, anchor ) {
2
 
    if ( anchor.className == 'hide' ) {
3
 
        document.getElementById(id).style.display = 'none'; 
4
 
        anchor.title = 'Expand';
5
 
        hideText[id] = anchor.innerHTML;
6
 
        if (expandText[id] == undefined) {
7
 
            expandText[id] = 'Expand';
8
 
        }
9
 
        anchor.innerHTML = expandText[id];
10
 
        anchor.className = 'expand';
11
 
    } else {
12
 
        document.getElementById(id).style.display = 'inline';
13
 
        anchor.title = 'Hide';
14
 
        expandText[id] = anchor.innerHTML;
15
 
        if (hideText[id] == undefined) {
16
 
            hideText[id] = 'Hide';
17
 
        }
18
 
        anchor.innerHTML = hideText[id];
19
 
        anchor.className = 'hide';
20
 
    }
21
 
    return false;
22
 
}
23
 
var prevAnchor = false;
24
 
var hideText = [];
25
 
var expandText = [];