[wp-trac] [WordPress Trac] #17058: Wrong behavior when the dashboard menu is folded
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 6 19:32:53 UTC 2011
#17058: Wrong behavior when the dashboard menu is folded
----------------------------+------------------
Reporter: nuxwin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.2
Component: Administration | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+------------------
Comment (by nuxwin):
Replying to [comment:9 nacin]:
> We can chain removeAttr() after toggleClass().
Sorry but I thinks that you wrong. We can chain removeAttr() before
toggleClass() but not after since we must operate on the submenu and not
on the parent.
To resume:
{{{
var id = el.parent().toggleClass( 'wp-menu-open' ).attr('id');
}}}
becomes:
{{{
var id = el.removeAttr('style').parent().toggleClass( 'wp-menu-open'
).attr('id');
}}}
For the record, I've not done this in this way for a better
understanding.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17058#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list