Fix l10n bug in post taxonomy js, props tellyworth, fixes #8717

git-svn-id: https://develop.svn.wordpress.org/trunk@10255 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2008-12-26 03:09:32 +00:00
parent 7a9c742af6
commit fdfc9ec532
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' );
}
});