Ticket #692: ComboBox.js.patch

File ComboBox.js.patch, 0.7 kB (added by cfranks@…, 3 years ago)

patch for src/widget/html/ComboBox.js

  • ComboBox.js

    old new  
    1414 
    1515        this.autoComplete = true; 
    16         this.formInputName = ""; 
    1716        this.name = ""; // clone in the name from the DOM node 
    1817        this.textInputNode = null; 
     
    320319 
    321320        fillInTemplate: function(args, frag){ 
    322                 // FIXME: need to get/assign DOM node names for form participation here. 
    323                 this.comboBoxValue.name = this.name; 
     321                var source = this.getFragNodeRef(frag); 
     322 
     323                if (! this.name && source.name){ this.name = source.name; } 
     324                this.comboBoxValue.name          = this.name; 
    324325                this.comboBoxSelectionValue.name = this.name+"_selected"; 
    325326 
    326                 var source = this.getFragNodeRef(frag); 
    327327                dojo.html.copyStyle(this.domNode, source); 
    328328