/[bfilter]/trunk/hide.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/hide.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 17 by dpavlin, Sun Sep 12 20:30:47 2004 UTC revision 18 by dpavlin, Mon Sep 13 11:01:22 2004 UTC
# Line 36  function toggle_display(name,dont_save) Line 36  function toggle_display(name,dont_save)
36  }  }
37    
38  function default_display() {  function default_display() {
39          for (var i = 0; i <= changed_display_pos; i++) {          if (changed_display_pos == 0) return;
40    
41            for (var i = 0; i < changed_display_pos; i++) {
42                  toggle_display( changed_display_ids[i], 1 );                  toggle_display( changed_display_ids[i], 1 );
43          }          }
44          changed_display_pos = 0;          changed_display_pos = 0;
# Line 106  function outline_display(name) { Line 108  function outline_display(name) {
108                  // recursivly show elements to root                  // recursivly show elements to root
109                  while (el.parentNode) {                  while (el.parentNode) {
110                          var el=el.parentNode;                          var el=el.parentNode;
111                          if (el.style.display=='none') toggle_display(el.id);                          if (el.style && el.style.display=='none') toggle_display(el.id);
112                  }                  }
113          }          }
114  }  }

Legend:
Removed from v.17  
changed lines
  Added in v.18

  ViewVC Help
Powered by ViewVC 1.1.26