Changeset 1778

Show
Ignore:
Timestamp:
09/01/05 13:05:18 (3 years ago)
Author:
rambo
Message:

preliminary select support for the tableform

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/static/org.openpsa.helpers/ajax_tableform.js

    r1763 r1778  
    154154            names[i] = inputs[i].name; 
    155155        } 
     156        var inputs = form.getElementsByTagName('select'); 
     157        for (var i=0; i < inputs.length; i++) 
     158        { 
     159            //TODO: Make use selectedindex, I doubt IE can use this form 
     160            values[inputs[i].name] = inputs[i].value; 
     161            names[i] = inputs[i].name; 
     162        } 
    156163        // TODO: Support other form field types 
    157164     
     
    331338            inputs[i].value = values[inputs[i].name]; 
    332339        } 
    333      
     340        var inputs = form.getElementsByTagName('select'); 
     341        for (var i=0; i < inputs.length; i++) 
     342        { 
     343            //TODO: make a selectedindex by value helper (I doubt IE can live with this form) 
     344            inputs[i].value = values[inputs[i].name]; 
     345        } 
     346        // TODO: Support other form field types 
     347         
    334348        ooAjaxSetClass(element, 'ajax_editable_row_editing', false); 
    335349