Changeset 12197

Show
Ignore:
Timestamp:
01/29/08 08:41:24 (12 months ago)
Author:
becky
Message:

fixes #5681 Add localized "cancel" text to the icon and the a11y text equivalent span (need both for IE to work).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/Dialog.js

    r12184 r12197  
    88dojo.require("dijit.layout.ContentPane"); 
    99dojo.require("dijit.form.Form"); 
     10dojo.requireLocalization("dijit", "common"); 
    1011 
    1112dojo.declare( 
     
    157158                        dojo.body().appendChild(this.domNode); 
    158159                        this.inherited("postCreate",arguments); 
    159                          
     160                        var _nlsResources = dojo.i18n.getLocalization("dijit", "common"); 
     161                        this.closeButtonNode.setAttribute("title", _nlsResources.buttonCancel); 
     162                        this.closeText.setAttribute("title", _nlsResources.buttonCancel); 
    160163                        var s = this.domNode.style; 
    161164                        s.visibility = "hidden";