Bind menu icons to single click instead of double
git-svn-id: http://svn.automattic.com/wordpress/trunk@9539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
36ebfb1ada
commit
2a615a4db8
|
@ -5,7 +5,7 @@ adminMenu = {
|
||||||
init : function() {
|
init : function() {
|
||||||
$('#adminmenu a').attr('tabindex', '10');
|
$('#adminmenu a').attr('tabindex', '10');
|
||||||
$('#adminmenu div.wp-menu-toggle').click( function() { return adminMenu.toggle( $(this).siblings('ul') ); } );
|
$('#adminmenu div.wp-menu-toggle').click( function() { return adminMenu.toggle( $(this).siblings('ul') ); } );
|
||||||
$('#adminmenu li.wp-has-submenu img.wp-menu-image').dblclick( function() { window.location = $(this).siblings('a.wp-has-submenu')[0].href; } );
|
$('#adminmenu li.wp-has-submenu img.wp-menu-image').click( function() { window.location = $(this).siblings('a.wp-has-submenu')[0].href; } );
|
||||||
|
|
||||||
$('.wp-menu-separator').click(function(){
|
$('.wp-menu-separator').click(function(){
|
||||||
if ( $('#adminmenu').hasClass('folded') ) {
|
if ( $('#adminmenu').hasClass('folded') ) {
|
||||||
|
|
|
@ -297,7 +297,7 @@ function wp_default_scripts( &$scripts ) {
|
||||||
$scripts->add( 'dashboard', '/wp-admin/js/dashboard.js', array( 'jquery', 'admin-comments', 'postbox', 'settings-box' ), '20081016' );
|
$scripts->add( 'dashboard', '/wp-admin/js/dashboard.js', array( 'jquery', 'admin-comments', 'postbox', 'settings-box' ), '20081016' );
|
||||||
|
|
||||||
$scripts->add( 'hoverIntent', '/wp-includes/js/hoverIntent.js', array('jquery'), '20070327' );
|
$scripts->add( 'hoverIntent', '/wp-includes/js/hoverIntent.js', array('jquery'), '20070327' );
|
||||||
$scripts->add( 'menu', '/wp-admin/js/menu.js', array( 'jquery', 'hoverIntent' ), '20081030' );
|
$scripts->add( 'menu', '/wp-admin/js/menu.js', array( 'jquery', 'hoverIntent' ), '20081105' );
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue