Changeset 14564


Ignore:
Timestamp:
2007-09-24T14:02:23+12:00 (15 years ago)
Author:
anna
Message:

Fixed a bug in get element value.

File:
1 edited

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';
Note: See TracChangeset for help on using the changeset viewer.