From 17bb5332ab3c04f9020777e23a3bef582c0d2a4f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 12 Jan 2008 15:54:44 +0000 Subject: [PATCH] Don't do form submit when pressing enter in add new tag box. Props mdawaffe. fixes #5629 git-svn-id: https://develop.svn.wordpress.org/trunk@6602 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/js/post.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/js/post.js b/wp-admin/js/post.js index 28b78f0c6a..1105609053 100644 --- a/wp-admin/js/post.js +++ b/wp-admin/js/post.js @@ -71,7 +71,6 @@ addLoadEvent( function() { // add the quickadd form jQuery('#jaxtag').prepend(''+postL10n.separate+''); jQuery('#tagadd').click( tag_flush_to_text ); -// jQuery('#newtag').keydown( tag_press_key ); jQuery('#newtag').focus(function() { if ( this.value == postL10n.addTag ) jQuery(this).val( '' ).removeClass( 'form-input-tip' ); @@ -82,7 +81,8 @@ addLoadEvent( function() { }); // auto-suggest stuff - jQuery('#newtag').suggest( 'admin-ajax.php?action=ajax-tag-search', { onSelect: tag_flush_to_text, delay: 500, minchars: 2 } ); + jQuery('#newtag').suggest( 'admin-ajax.php?action=ajax-tag-search', { delay: 500, minchars: 2 } ); + jQuery('#newtag').keypress( tag_press_key ); // postboxes add_postbox_toggles();