/[webpac2]/Webpacus/root/js/search.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 /Webpacus/root/js/search.js

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

revision 447 by dpavlin, Mon May 1 16:11:43 2006 UTC revision 448 by dpavlin, Mon May 1 16:22:49 2006 UTC
# Line 222  function checkbox_toggle( name, val ) { Line 222  function checkbox_toggle( name, val ) {
222          return checkbox_magic( name, val, 0 );          return checkbox_magic( name, val, 0 );
223  }  }
224    
225    var checkbox_single_current = '';
226    
227  function checkbox_single( name, val ) {  function checkbox_single( name, val ) {
228          return checkbox_magic( name, val, 1 );          if (checkbox_single_current == name) {
229                    checkbox_single_current = '';
230                    Logger.debug('show all databases');
231                    return checkbox_magic( name, val, 0 );
232            } else {
233                    Logger.debug('show just database '+name);
234                    checkbox_single_current = name;
235                    return checkbox_magic( name, val, 1 );
236            }
237  }  }
238    
239  function checkbox_magic( name, val, single ) {  function checkbox_magic( name, val, single ) {

Legend:
Removed from v.447  
changed lines
  Added in v.448

  ViewVC Help
Powered by ViewVC 1.1.26