Search and Top Navigation
#9377 closed bug (fixed)
Opened June 13, 2013 05:13PM UTC
Closed June 17, 2013 02:37AM UTC
Last modified November 26, 2013 04:01PM UTC
Menu: Refreshing should recheck for menu icons
Reported by: | shnitz | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.10.4 |
Component: | ui.menu | Version: | 1.9.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
If a menu without icons has an icon item added, the refresh doesn't pick it up.
Attachments (0)
Change History (7)
Changed June 13, 2013 06:52PM UTC by comment:1
status: | new → open |
---|---|
summary: | Refreshing a menu should recheck for menu icons → Menu: Refreshing should recheck for menu icons |
Changed June 13, 2013 07:15PM UTC by comment:2
The refresh method needs to conditionally add / remove the
ui-menu-iconsclass. Failing test in case I don't get back around to this:
test( "refresh: icons (see #9377)", function() { expect( 2 ); var element = $( "#menu1" ).menu(); ok( !element.hasClass( "ui-menu-icons") ); element.find( "li:first a" ).html( '<span class="ui-icon ui-icon-disk"></span>Save</a>' ); element.menu("refresh"); ok( element.hasClass( "ui-menu-icons" ) ); });
Changed June 13, 2013 08:49PM UTC by comment:3
Changed June 17, 2013 02:37AM UTC by comment:4
resolution: | → fixed |
---|---|
status: | open → closed |
Menu: Reset ui-menu-icons class in refresh. Fixes #9377: Menu: Refreshing should recheck for menu icons
Changeset: 91b7b9f9ab2e5baa31e37f34600457599409e161
Changed June 17, 2013 02:38AM UTC by comment:5
milestone: | none → 1.11.0 |
---|
Changed November 26, 2013 04:00PM UTC by comment:6
Menu: Reset ui-menu-icons class in refresh. Fixes #9377: Menu: Refreshing should recheck for menu icons
(cherry picked from commit 91b7b9f9ab2e5baa31e37f34600457599409e161)
Changeset: db1ee1af85ea2f0671f370e325d4ba5b971b2dd0
Changed November 26, 2013 04:01PM UTC by comment:7
milestone: | 1.11.0 → 1.10.4 |
---|
Confirmed against master: http://jsfiddle.net/tj_vantoll/sLxny/