Changeset 5695

Show
Ignore:
Timestamp:
09/18/06 12:00:42 (2 years ago)
Author:
dylan
Message:

fixes #692, ComboBox? form name missing, thanks for the patch

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/widget/ComboBox.js

    r5667 r5695  
    226226                // HTML specific stuff 
    227227                autoComplete: true, 
    228                 formInputName: "", 
    229228                name: "", // clone in the name from the DOM node 
    230229                textInputNode: null, 
     
    549548                        dojo.html.applyBrowserClass(this.domNode); 
    550549 
    551                         // FIXME: need to get/assign DOM node names for form participation here. 
    552                         this.comboBoxValue.name = this.name; 
     550                        var source = this.getFragNodeRef(frag);  
     551                        if (! this.name && source.name){ this.name = source.name; }  
     552                        this.comboBoxValue.name = this.name;  
    553553                        this.comboBoxSelectionValue.name = this.name+"_selected"; 
    554554 
    555                         var source = this.getFragNodeRef(frag); 
    556555                        dojo.html.copyStyle(this.textInputNode, source); 
    557556