Changeset 14564

Show
Ignore:
Timestamp:
24.09.2007 14:02:23 (12 years ago)
Author:
anna
Message:

Fixed a bug in get element value.

Files:
1 modified

Legend:

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

    r14393 r14564  
    4040} 
    4141 
    42 function checkForm(){   
    43   if(document.PrefForm.qfm.value=='2'){ 
     42function checkForm(){        
     43  var qfm = "2"; 
     44  for (var i=0; i<document.getElementsByName('qfm').length; i++) { 
     45    if(document.getElementsByName('qfm')[i].checked == true){ 
     46        qfm = document.getElementsByName('qfm')[i].value; 
     47    }    
     48  }     
     49  if(qfm=='2'){ 
    4450    document.PrefForm.ct.value = '0'; 
    4551    document.PrefForm.qt.value = '0';