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:
parent
15153dd5d6
commit
f9636f5b95
|
@ -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