Ignore:
Timestamp:
10/14/07 23:14:45 (12 years ago)
Author:
ray
Message:

#1091 SaveSubmit? does not correctly submit value of checkboxes and radio buttons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/SaveSubmit/save-submit.js

    r727 r903  
    9999        form.onsubmit(); 
    100100 
    101         var content =''; 
    102  
     101        var name, value, content =''; 
     102         
    103103        for (var i=0;i<form.elements.length;i++) 
    104104        { 
     105                if (( form.elements[i].type == 'checkbox' || form.elements[i].type == 'radio' ) && !form.elements[i].checked ) continue; 
     106 
    105107                content += ((i>0) ? '&' : '') + form.elements[i].name + '=' + encodeURIComponent(form.elements[i].value); 
    106108        } 
Note: See TracChangeset for help on using the changeset viewer.