Index: openacs-4/packages/ajaxhelper/www/resources/yui/menu/README =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ajaxhelper/www/resources/yui/menu/README,v diff -u -r1.2 -r1.3 --- openacs-4/packages/ajaxhelper/www/resources/yui/menu/README 25 Dec 2006 16:40:03 -0000 1.2 +++ openacs-4/packages/ajaxhelper/www/resources/yui/menu/README 8 Sep 2007 14:22:07 -0000 1.3 @@ -1,247 +1,770 @@ -Menu Release Notes - -*** version 0.10.0 *** - -* Initial release - -* Known issues: - - * Some Firefox extensions disable the ability for JavaScript to prevent - the display of the browser's default context menu. These extensions - can cause the YUI ContextMenu to stop working. If you encounter this - problem, you can reset the context menu preference in Firefox back to - the default by making sure the "Disable or replace context menus" - preference is checked: - - Mac Firefox 1.0: - ------------------- - Preferences > Web Features > - Advanced... > Disable or replace context menus - - Mac Firefox 1.5 - ------------------- - Preferences > Context > - Advanced... > Disable or replace context menus - - Windows Firefox 1.0 - ------------------- - Tools > Options > Web Features > - Advanced... > Disable or replace context menus - - Windows Firefox 1.5 - ------------------- - Tools > Options > Context > - Advanced... > Disable or replace context menus - - -*** version 0.11.0 *** - -Added the following features: ------------------------------ -* Overloaded the "addItem" and "insertItem" methods of MenuModule to accept a - string or a MenuModuleItem instance - -* Added the ability to define a MenuItem instance as being "checked" - - -Fixed the following bugs: -------------------------- -* Changing the path for the submenu indicator image of one MenuModuleItem - subclass will no longer affect other subclasses - -* MenuItem instances built from existing markup without anchor tags will no - longer trigger a JavaScript error when clicked - -* Modified the implementation of the "imageRoot" property for the - MenuModuleItem class so that it is set to a secure/non-secure path when the - object is instantiated - -* Menu instances now resize in response to changes to the browser's font size - -* Modified the propagation of the MenuModule class's "submenualignment" - configuration property so that it only applies to instances of the same type - -* Adjusted the specificity of the style rule that controls the position of a - MenuItem instance's submenu indicator image to prevent it from wrapping in IE - -* Specified a width and height for submenu indicator images in the Menu - stylesheet to ensure that Menu instances are always rendered at the correct - width - -* Clicking a MenuItem instance will no longer trigger two HTTP GET requests - -* Users can now control or shift-click on MenuItem links - - -Changes: --------- -* In the Menu stylesheet (menu.css), switched from using "first" class to - "first-of-type" class - -* Changed case of MenuModuleItem class's "subMenuIndicator" property - to "submenuIndicator" - - -*** version 0.11.3 *** - -Added the following features: ------------------------------ - -* Added a "target" configuration property to the MenuModuleItem object that - allows the user to specify the target of an item's anchor element. Items - that make use of the "target" configuration property will require the user - to click exactly on the item's anchor element to navigate to the specified - URL. - -* Items without a "url" property set will automatically hide their parent - menu instance(s) when clicked. - - -Fixed the following bugs: -------------------------- - -* Items in a submenu should now navigate to their specified URL when clicked. - -* Removed MenuBar's use of "overflow:hidden." This fixes an issue in Firefox - 1.5 in which submenus of a Menubar instance cannot overlay other absolutely - positioned elements on the page. - -* Submenus of a Menubar instance will now automatically have their iframe shim - enabled in IE<7. - -* Statically positioned Menubar and Menu instances will now render with the - correct position and dimensions in Safari. - -* MenuModuleItem's "focus" method now checks to make sure that an item's - "display" style property is not "none" before trying to set focus to its - anchor element. - -* A ContextMenu instance will now hide all other ContextMenu instances before - displaying itself. - -* Removed the dead space in front of an item's submenu indicator image in IE. - This space was causing an item's submenu to flicker when the user hovered - over it. - - -Changes: --------- - -* Moved the DOM event handlers for every menu from the root DIV node of each - instance to the document object. This change reduces the number of DOM event - handlers used by Menu to eight, improving the cleanup time required by the - Event utility. - - -*** version 0.12 *** - -Added the following features: ------------------------------ - -* Added the YAHOO.widget.MenuManager singleton class. - -* Added two new methods to YAHOO.widget.Menu: - - * "addItems" - Adds an array of items to a menu. - - * "getRoot" - Returns the root menu in a menu hierarchy. - -* Added two new events to YAHOO.widget.Menu: - - * "itemAddedEvent" - Fires when an item is added to a menu. - - * "itemRemovedEvent" - Fires when an item is removed from a menu. - -* Added two new properties to YAHOO.widget.Menu: - - * "itemData" - Array of items to be added to the menu. - - * "lazyLoad" - Boolean indicating if the menu's "lazy load" feature - is enabled. - -* Added new configuration properties to YAHOO.widget.Menu: - - * "hidedelay" - Hides the menu after the specified number of milliseconds. - - * "showdelay" - Shows the menu after the specified number of milliseconds. - - * "container" - The containing element the menu should be rendered into. - - * "clicktohide" - Boolean indicating if the menu will automatically be - hidden if the user clicks outside of it. - - * "autosubmenudisplay" - Boolean indicating if submenus are automatically - made visible when the user mouses over the menu's items. - -* Added a "toString" method to YAHOO.widget.MenuItem, YAHOO.widget.MenuBarItem - and YAHOO.widget.ContextMenuItem that returns the class name followed by the - value of the item's "text" configuration property. - - -Fixed the following bugs: -------------------------- - -* Setting a YAHOO.widget.ContextMenu instance's "trigger" configuration - property will remove all previous triggers before setting up the new ones. - -* "destroy" method of YAHOO.widget.ContextMenu cleans up all DOM event handlers. - -* Clicking on a menu item with a submenu no longer hides/collapses the - entire menu. - -* Clicking an item's submenu indicator image no longer collapses the - entire menu. - - -Changes: --------- - -* Deprecated the YAHOO.widget.MenuModule and YAHOO.widget.MenuModuleItem - classes. The Base classes are now YAHOO.widget.Menu and - YAHOO.widget.MenuItem. - -* "addItem" and "insertItem" methods of YAHOO.widget.Menu now accept an - object literal representing YAHOO.widget.MenuItem configuration properties. - -* "clearActiveItem" now takes an argument: flag indicating if the Menu - instance's active item should be blurred. - -* Switched the default value of the "visible" configuration property for - YAHOO.widget.Menu to "false." - -* Switched the default value of the "constraintoviewport" configuration - property for YAHOO.widget.Menu to "true." - -* Overloaded the "submenu" configuration property for YAHOO.widget.MenuItem - so that it now can accept any of the following: - - * YAHOO.widget.Menu instance - * Object literal representation of a menu - * Element id - * Element reference - -* "hide" and "show" methods of statically positioned menus now toggle the their - element's "display" style property between "block" and "none." - - -*** version 0.12.1 *** - -Fixed the following bugs: -------------------------- - -* Placed the call to the DOM "focus" method used by the MenuItem class inside - a zero-second timeout to resolve a race condition between menu positioning - and focusing of a menu item that resulted in the browser viewport - scrolling unnecessarily. - -* Switched to JSMin for JavaScript compression to resolve issues with the - minified version. - -* Disabled menu item instances will no longer display a submenu if the item is - clicked or moused over. - -* Can no longer select more than one item in a menu if using the keyboard and - mouse simultaneously. - -* Calling the "destory" method on a menu will now unregister all of the menu's - submenus from the MenuManager. \ No newline at end of file +*** version 2.3.0 *** + +Fixed the following bugs: +------------------------- + ++ Pressing the Esc key when an item in a MenuBar has focus will now result + in the item blurring in IE. + ++ Clicking a YAHOO.widget.MenuItem instance with a "url" configuration property + set will now result in the hiding of its parent YAHOO.widget.Menu instance. + ++ Creating an empty YAHOO.widget.Menu instance from existing markup will no + longer result in a JavaScript error. + ++ The "constraintoviewport" configuration property now correctly keeps a + YAHOO.widget.Menu instance inside the boundaries of the browser viewport. + ++ Tuned scrolling behavior so that when the user has scrolled to the bottom of + a YAHOO.widget.Menu instance and starts pressing the up arrow key, the + contents begin scrolling only when the next item to be selected is out of + view of the scrollable area. + ++ Modified "removeMenu" method of YAHOO.widget.MenuManager so that it removes + the specified YAHOO.widget.Menu instance from the collection of visible menus. + ++ Calling the "destroy" method of a visible YAHOO.widget.Menu instance now + purges it from the YAHOO.widget.Manager's collection of visible Menus. + ++ YAHOO.widget.Menu instances now blur before hiding. + ++ The debug version of YAHOO.widget.Menu now correctly logs as "Menu" rather + than "Overlay" in IE. + ++ Setting a YAHOO.widget.MenuItem instance's "checked" configuration property + to "true" two or more times followed by "false" will no longer result in some + of the DOM elements used to render the checkmark icon will no longer remain + in the item's DOM. + ++ It is now possible to click anywhere on a YAHOO.widget.MenuItem instance + and have it navigate to the URL specified by its "url" configuration property + - even if the MenuItem has a value specified for its "target" + configuation property. + ++ The "toString" method of YAHOO.widget.MenuItem now returns the instance's id. + ++ Setting the YAHOO.widget.MenuItem.prototype.COLLAPSED_SUBMENU_INDICATOR_TEXT + constant to empty string no longer results in JavaScript error. + ++ YAHOO.widget.MenuBar instances behave the same regardless of the value + of their "position" configuration property. + ++ It is now possible to ctr or shift-click on YAHOO.widget.MenuItem instances + without the browser automatically redirecting to the URL specified by the + MenuItem's "url" configuration property. + + +Added the following features: +----------------------------- + ++ Prototype of all classes (Menu, ContextMenu, MenuBar, MenuItem, + ContextMenuItem, MenuBarItem) are augmented with YAHOO.util.EventProvider. + ++ Added the following methods to YAHOO.widget.MenuManager: + + - "getMenuItem" + - "getMenuItemGroup" + ++ Added the following methods to YAHOO.widget.Menu: + + - "subscribe" + - "getSubmenus" + - "onRender" + ++ Added a "disabled" configuration property to YAHOO.widget.Menu. + ++ Added the constant "CSS_LABEL_CLASS_NAME" to YAHOO.widget.MenuItem that + represents the name of the CSS class applied to the node that is the + first child of its root
node. + ++ Added the constant "CSS_LABEL_CLASS_NAME" to YAHOO.widget.MenuBarItem that + represents the name of the CSS class applied to the node that is the + first child of its root node. + ++ Added ability for YAHOO.widget.Menu instances to have shadow: + + - The shadow for a Menu is implemented by appending a new element as the + last child of its root element: + + + + - The code that creates the shadow element resides inside the Menu's + public "onRender" prototype method. To disable the creation of a Menu's + shadow override the prototype of the "onRender" method: + + YAHOO.widget.Menu.prototype.onRender = function () { }; + + - The actual creation of the shadow element is deferred until the Menu is + made visible for the first time. + + - The shadow element is only created for Menu instances whose + "position" configuration property is set to "dynamic." + + - A Menu's shadow element can be styled via two CSS classes: + + + "yui-menu-shadow" - Applied to the shadow element when it is created. + + "yui-menu-shadow-visible" - Applied to the shadow element when the + Menu is visible; it is removed when hidden. + + - The shadow element is only styled when using the new "Sam" skin, for + the previous default skin its "display" property is set to "none." + + +Changes: +-------- + ++ Deprecated "browser" property of YAHOO.widget.MenuItem in favor + of the YAHOO.env.ua. + ++ Modified the DOM structure for a YAHOO.widget.MenuItem instance so that its + root node only has only two direct descendants: + + - The node for its text label + - The node for its submenu + + The submenu indicator node (), checked + indicator node (), and help text node + () that were previously direct descendants of a + YAHOO.widget.MenuItem instance's root are now direct descendants of + its node: + +