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
This commit is contained in:
azaozz 2008-12-26 03:09:32 +00:00
parent 15153dd5d6
commit f9636f5b95
1 changed files with 3 additions and 1 deletions

View File

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