[wp-trac] [WordPress Trac] #25594: When modifying your first menu, before saving, "Move" links do not work
WordPress Trac
noreply at wordpress.org
Mon Oct 28 17:58:42 UTC 2013
#25594: When modifying your first menu, before saving, "Move" links do not work
--------------------------+------------------
Reporter: ericlewis | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.8
Component: Menus | Version: 3.6
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------
Comment (by azaozz):
Yes, delegating the `click` would work for all elements, initially loaded
and added later. A bit better/faster way to do this would be to add one
event handler and check the target:
{{{
$(document).on( 'click.move-menu', function( event ) {
var $tagret = $( event.target );
if ( $target.hasCLass('menus-move-up') ) {
...
} else if ( $target.hasCLass('menus-move-down') ) {
...
} else if ( ... )
});
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25594#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list