s/sumbit/submit/. Props Malaiac. fixes #8645 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10259 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b54484f937
commit
cd6073fabb
|
@ -118,7 +118,7 @@ function link_categories_meta_box($link) { ?>
|
|||
<p id="link-category-add" class="wp-hidden-child">
|
||||
<label class="hidden" for="newcat"><?php _e( '+ Add New Category' ); ?></label>
|
||||
<input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" aria-required="true" />
|
||||
<input type="button" id="category-add-sumbit" class="add:categorychecklist:linkcategorydiv button" value="<?php _e( 'Add' ); ?>" />
|
||||
<input type="button" id="category-add-submit" class="add:categorychecklist:linkcategorydiv button" value="<?php _e( 'Add' ); ?>" />
|
||||
<?php wp_nonce_field( 'add-link-category', '_ajax_nonce', false ); ?>
|
||||
<span id="category-ajax-response"></span>
|
||||
</p>
|
||||
|
|
|
@ -9,7 +9,7 @@ jQuery(document).ready( function($) {
|
|||
|
||||
// Ajax Cat
|
||||
var newCat = jQuery('#newcat').one( 'focus', function() { jQuery(this).val( '' ).removeClass( 'form-input-tip' ) } );
|
||||
jQuery('#category-add-sumbit').click( function() { newCat.focus(); } );
|
||||
jQuery('#category-add-submit').click( function() { newCat.focus(); } );
|
||||
var noSyncChecks = false; // prophylactic. necessary?
|
||||
var syncChecks = function() {
|
||||
if ( noSyncChecks )
|
||||
|
|
Loading…
Reference in New Issue