Changeset 13752 for dijit

Show
Ignore:
Timestamp:
05/16/08 16:35:39 (6 months ago)
Author:
doughays
Message:

Fixes #6215 !strict. Added name attribute to Button template. Moved scrollIntoVIew call from _Widget to _FormWidget to keep multiple widgets from trying to scroll at the same time.

Location:
dijit/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/form/templates/Button.html

    r12581 r13752  
    33        waiRole="presentation" 
    44        ><button class="dijitReset dijitStretch dijitButtonNode dijitButtonContents" dojoAttachPoint="focusNode,titleNode" 
    5                 type="${type}" waiRole="button" waiState="labelledby-${id}_label" 
     5                name="${name}" type="${type}" waiRole="button" waiState="labelledby-${id}_label" 
    66                ><span class="dijitReset dijitInline ${iconClass}" dojoAttachPoint="iconNode"  
    77                        ><span class="dijitReset dijitToggleButtonIconChar">&#10003;</span  
  • dijit/trunk/form/templates/DropDownButton.html

    r12413 r13752  
    33        waiRole="presentation" 
    44        ><div class='dijitReset dijitRight' waiRole="presentation" 
    5         ><button class="dijitReset dijitStretch dijitButtonNode dijitButtonContents" type="${type}" 
     5        ><button class="dijitReset dijitStretch dijitButtonNode dijitButtonContents" type="${type}" name="${name}" 
    66                dojoAttachPoint="focusNode,titleNode" waiRole="button" waiState="haspopup-true,labelledby-${id}_label" 
    77                ><div class="dijitReset dijitInline ${iconClass}" dojoAttachPoint="iconNode" waiRole="presentation"></div 
  • dijit/trunk/form/_FormWidget.js

    r13547 r13752  
    9393 
    9494 
     95        _onFocus: function(e){ 
     96                dijit.scrollIntoView(this.domNode); 
     97                this.inherited(arguments); 
     98        }, 
     99 
    95100        _onMouse : function(/*Event*/ event){ 
    96101                // summary: 
  • dijit/trunk/tests/form/Form.html

    r13735 r13752  
    361361                </table> 
    362362 
    363                 <button dojoType=dijit.form.Button onClick="getValues();">Get Values from form!</button> 
    364                 <button dojoType=dijit.form.Button onClick="setValues();">Set Values to form!</button> 
    365                 <button dojoType=dijit.form.Button type="submit">Submit</button> 
    366                 <button dojoType=dijit.form.Button type="reset">Reset</button> 
     363                <button dojoType="dijit.form.Button" onClick="getValues();">Get Values from form!</button> 
     364                <button dojoType="dijit.form.Button" onClick="setValues();">Set Values to form!</button> 
     365                <button dojoType="dijit.form.Button" type="submit" name="submitButton" value="Submit">Submit</button> 
     366                <button dojoType="dijit.form.Button" type="reset">Reset</button> 
    367367        </form> 
    368368 
  • dijit/trunk/_Widget.js

    r13710 r13752  
    298298 
    299299        _onFocus: function(e){ 
    300                 dijit.scrollIntoView(this.domNode); 
    301300                this.onFocus(); 
    302301        },