Changeset 13384

Show
Ignore:
Timestamp:
04/22/08 17:02:33 (7 months ago)
Author:
doughays
Message:

Fixes #6306. Added support for intermediateChanges to textbox and its subclasses.

Location:
dijit/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/form/_FormWidget.js

    r13055 r13384  
    332332                        } 
    333333                } 
     334                else if(this.intermediateChanges){ 
     335                        var _this = this; 
     336                        // the setTimeout allows the key to post to the widget input box 
     337                        setTimeout(function(){ _this._handleOnChange(_this.getValue(), false); }, 0); 
     338                } 
    334339                return true; 
    335340        } 
  • dijit/trunk/tests/form/test_validate.html

    r12730 r13384  
    6262                        <div class="dojoTitlePaneLabel"> 
    6363                                <label for="q01">First Name:  </label> 
    64                                 <span class="noticeMessage"> TextBox class, <b>tabIndex=2</b>, Attributes: {trim: true, propercase: true, style: 'width:700px'}, First letter of each word is upper case.</span> 
     64                                <span class="noticeMessage"> TextBox class, <b>tabIndex=2</b>, Attributes: {trim: true, propercase: true, intermediateChanges: true, style: 'width:700px'}, First letter of each word is upper case.</span> 
    6565                        </div> 
    6666                        <div class="testExample"> 
     
    7171                                        onblur="console.log('user onblur handler')" 
    7272                                        onChange="dojo.byId('oc1').value=arguments[0]" 
     73                                        intermediateChanges="true" 
    7374                                        propercase="true" /> 
    7475                                <br>onChange:<input id="oc1" size="34" disabled value="not fired yet!" autocomplete="off">