From f9636f5b95db2fa427c30ed286cc85190b4d2adb Mon Sep 17 00:00:00 2001 From: azaozz Date: Fri, 26 Dec 2008 03:09:32 +0000 Subject: [PATCH] Fix l10n bug in post taxonomy js, props tellyworth, fixes #8717 git-svn-id: http://svn.automattic.com/wordpress/trunk@10255 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/js/post.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-admin/js/post.js b/wp-admin/js/post.js index 40a0892a33..a8528f3138 100644 --- a/wp-admin/js/post.js +++ b/wp-admin/js/post.js @@ -101,13 +101,15 @@ function tag_init() { // add the quickadd form jQuery('.ajaxtag input.tagadd').click(function(){tag_flush_to_text(jQuery(this).parents('.tagsdiv').attr('id'));}); jQuery('.ajaxtag input.newtag').focus(function() { - if ( this.value == postL10n.addTag ) { + if ( !this.cleared ) { + this.cleared = true; jQuery(this).val( '' ).removeClass( 'form-input-tip' ); } }); jQuery('.ajaxtag input.newtag').blur(function() { if ( this.value == '' ) { + this.cleared = false; jQuery(this).val( postL10n.addTag ).addClass( 'form-input-tip' ); } });