Changeset 45683
- Timestamp:
- 07/26/2019 05:45:21 PM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/admin/tags.js
r43347 r45683 11 11 12 12 jQuery(document).ready(function($) { 13 14 var addingTerm = false; 13 15 14 16 /** … … 103 105 return false; 104 106 107 if ( addingTerm ) { 108 // If we're adding a term, noop the button to avoid duplicate requests. 109 return false; 110 } 111 112 addingTerm = true; 113 form.find( '.submit .spinner' ).addClass( 'is-active' ); 114 105 115 /** 106 116 * Does a request to the server to add a new term to the database … … 112 122 $.post(ajaxurl, $('#addtag').serialize(), function(r){ 113 123 var res, parent, term, indent, i; 124 125 addingTerm = false; 126 form.find( '.submit .spinner' ).removeClass( 'is-active' ); 114 127 115 128 $('#ajax-response').empty(); -
trunk/src/wp-admin/css/edit.css
r45483 r45683 1162 1162 .ac_match { 1163 1163 text-decoration: underline; 1164 } 1165 1166 #addtag .spinner { 1167 float: none; 1168 vertical-align: top; 1164 1169 } 1165 1170 -
trunk/src/wp-admin/edit-tags.php
r45674 r45683 516 516 */ 517 517 do_action( "{$taxonomy}_add_form_fields", $taxonomy ); 518 519 submit_button( $tax->labels->add_new_item ); 520 518 ?> 519 <p class="submit"> 520 <?php submit_button( $tax->labels->add_new_item, 'primary', 'submit', false ); ?> 521 <span class="spinner"></span> 522 </p> 523 <?php 521 524 if ( 'category' == $taxonomy ) { 522 525 /**
Note: See TracChangeset
for help on using the changeset viewer.