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:
ryan 2008-11-06 01:52:37 +00:00
parent 36ebfb1ada
commit 2a615a4db8
2 changed files with 2 additions and 2 deletions

View File

@ -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') ) {

View File

@ -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' );
} }
} }