*** Version 2.5.1 *** + No changes. *** Version 2.5.0 *** + Fixed issue where returning false inside the scope of a listener for attribute "before" events (i.e "beforeCheckedChange") would not cancel the attribute's default setter. *** Version 2.4.1 *** + No changes. *** Version 2.4.0 *** Added the following features: ----------------------------- + Added a static method "YAHOO.widget.Button.getButton" that returns a Button instance with the specified HTML element id. Fixed the following bugs: ------------------------- + Removed the ".yui-skin-sam" CSS class name from style rules in the core stylesheet so that it is now truly skin agnostic. + Updated the default text for tooltips for Buttons of type "radio" so that they offer the correct instructional text. + Menus with grouped YAHOO.widget.MenuItem instances will now highlight correctly when used with Button. + Buttons of type "link" now have the same default height as other Button types in Internet Explorer. + Buttons of various types now line up correctly on the same line. + Menu is now truly an optional dependancy of Button. + Menus now render with the correct width when the "yui-skin-sam" CSS class name is applied to an element other than the . *** Version 2.3.1 *** Fixed the following bugs: ------------------------- + Purged the old 2.2.2 Button stylesheet and related image assets that was mistakenly included in the 2.3.0 build. + Fixed an issue in Gecko where changing a Button instance's "label" attribute after the Button had been created would not result in the Button redrawing at a width to fit its content. + Fixed an issue where the singleton keypress event handler (YAHOO.widget.Button.onFormKeyPress) registered for forms containing Button instances of type "submit" was not removed from the form once all of its child Button instances are destroyed. + Submitting a form by clicking on a MenuItem of a SplitButton's or MenuButton's Menu will no longer result in a JavaScript error. + Modified how element tag names are compared to support XHTML applications. + Added code to remove the CSS class names representing the "hover," "focus," and "active" states when a Button instance is disabled. *** Version 2.3 *** Added the following features: ----------------------------- + Added a "focusmenu" configuration attribute that controls whether or not a Button instance's menu will automatically be focused when made visible. + Added a "lazyloadmenu" configuration attribute that controls the value of the "lazyload" configuration property of a Button's menu. + Added "menuclassname" configuration attribute that defines a CSS class name to be applied to the root HTML element of a button's menu. Fixed the following bugs: ------------------------- + Setting the "label" attribute of a Button of type "link" to a string with a "www." prefix will no longer result in the value of the "href" property being used for the "label" in IE. + Disabling a Button when its menu is visible will now result in the menu being hidden. + Hidden field(s) created by a Button instance are now removed if the submission of its parent form is cancelled. + If a Button instance is preceeded by another enabled HTML submit button ( or - - ... TEXT/HTML ... - ... ... - ... ... + The id of a Button instance can now match that of its source element. + CSS changes: 1) All Buttons have a "yui-" prefix as opposed to "yui": 2.2.2 | 2.3 ------------------------- .yuibutton | .yui-button 2) Each Button type has its own class name with a "yui-" prefix and "-button" suffix IN ADDITION TO the default "yui-button" class name: 2.2.2 | 2.3 ------------------------------------------ .yuibutton.splitbutton | .yui-split-button .yuibutton.menubutton | .yui-menu-button * Allows for the definition of generic styles that apply to all buttons, while providing a means for uniquely styling buttons of a specific type. 3) For states that are common to all Buttons, two classes are applied: a generic class name (i.e. yui-button-[state]) and a type-specific state class name (yui-[type]-button-[state]): 2.2.2 | 2.3 ------------------------------------------- .yuibutton.focus | .yui-button-focus .yuibutton.radio.focus | .yui-radio-button-focus * States common to all Button types are: + focus + hover + active + disabled ** Allows for the definition of generic styles that apply to all states of all buttons, while providing a means for uniquely styling states for buttons of a specific type. 4) Buttons of type "radio" and "checkbox" have two classes applied to represent their "checked" state: a generic class name (i.e. yui-button-checked) and a type-specific class name (yui-[type]-button-checked): 2.2.2 | 2.3 ------------------------------------------- .yuibutton.checked | .yui-button-checked .yuibutton.radio.checked | .yui-radio-button-checked .yuibutton.checkbox.checked | .yui-checkbox-button-checked ** This allows for the definition of a universal style for all Buttons that have a "checked" state or the ability to define a type-specific style for the "checked" state. 5) States that are specific to a particular type only get a type-specific state class name. Currently this only applies to the "splitbutton" type: 2.2.2 | 2.3 ------------------------------------------- .yuibutton.activeoption | .yui-split-button-activeoption 6) The "ie6" class name is removed. *** Version 2.2.2 *** + No changes *** Version 2.2.1 *** Added the following features: ----------------------------- + Added "getHiddenField" method to YAHOO.widget.Button. Fixed the following bugs: ------------------------- + Removed built-in use of the Event utility's "onAvailable" method from the constructor of Button and ButtonGroup as it was preventing the addition of event listeners on instances created from existing markup. Going forward Button and ButtonGroup instances created from existing markup can only be instantiated once their source HTML element is available in the DOM. The Button examples illustrate how this can be accomplished. + Modified code so that disabled Button instances no longer fire DOM events. + Pressing the enter key while focused on a form field whose parent form contains a Button instance of type "submit" will now automatically submit the form using the first Button instance of type "submit". + Clicking a Button instance of type="submit" will now cause the Button's parent form's "submit" event to fire. + Modified Button CSS so that the filter used to apply alpha transparency to a Button's background PNG is only used by IE 6. The previous code was enabling IE's Alpha image loader for IE 7 in Quirks mode. + Fixed documentation error for "getForm" method. Changes: -------- + Made the "submitForm" method of YAHOO.widget.Button public (was previously protected). + Removed "init" event and corresponding "oninit" configuration attribute from YAHOO.widget.Button and YAHOO.widget.ButtonGroup. + Added the CSS class "ie6" to button.css. This classname is append to root DOM element of Button instances created with IE 6. By default this class is used to apply a filter that gives alpha transparency to a Button's background PNG. *** Version 2.2.0 *** * Button Control introduced