Changeset 14648

Show
Ignore:
Timestamp:
11.10.2007 09:18:41 (12 years ago)
Author:
qq6
Message:

updated by Anna

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/branches/3.03/web/interfaces/classic/js/pref.js

    r14564 r14648  
    11function changePref(val){ 
    22  document.PrefForm.qfm.value = val; 
    3   if(val=='1') { 
    4     document.PrefForm.ct.value='1'; 
     3  // display different options associated with different modes 
     4  if(val=='1') {     
    55    for (var i=0; i<document.getElementsByTagName('tr').length;i++) { 
    66      var id = document.getElementsByTagName('tr')[i].id; 
     
    1414    } 
    1515  } else if (val=='0') { 
    16     document.PrefForm.ct.value='1'; 
    1716    for (var i=0; i<document.getElementsByTagName('tr').length;i++) { 
    1817      var id = document.getElementsByTagName('tr')[i].id; 
     
    2625    } 
    2726  } else { 
    28     document.PrefForm.ct.value='0';    
    2927    for (var i=0; i<document.getElementsByTagName('tr').length;i++) { 
    3028      var id = document.getElementsByTagName('tr')[i].id; 
     
    4745    }    
    4846  }     
     47  // this is actually the text query mode 
    4948  if(qfm=='2'){ 
    50     document.PrefForm.ct.value = '0'; 
    5149    document.PrefForm.qt.value = '0'; 
    52   } else { 
    53     document.PrefForm.ct.value = '1'; 
     50  } 
     51  else { 
    5452    document.PrefForm.qt.value = '1'; 
    5553  }