mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Taxonomy: Only reset non-button form field values after adding a tag.
[52953] added HTML5 input types to the form reset after a tag is created. The selector was a bit too greedy, causing `button` types to have their values reset also. This change updates the jQuery selector to exclude `button`, `submit`, and `reset` input types from the form reset. Follow-up to [52953]. Props peterwilsoncc. Fixes #48030. git-svn-id: https://develop.svn.wordpress.org/trunk@53168 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
51fb7887e3
commit
2e4661c6c9
@ -158,7 +158,7 @@ jQuery( function($) {
|
||||
form.find( 'select#parent option:selected' ).after( '<option value="' + term.term_id + '">' + indent + term.name + '</option>' );
|
||||
}
|
||||
|
||||
$('input:not([type="checkbox"]):not([type="radio"]):visible, textarea:visible', form).val('');
|
||||
$('input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):visible, textarea:visible', form).val('');
|
||||
});
|
||||
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user