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:
parent
7a9c742af6
commit
fdfc9ec532
|
@ -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' );
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue