mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-17 21:43:20 +09:00
clear input after new term is added
This commit is contained in:
@@ -58,11 +58,13 @@ jQuery(document).ready(function($){
|
||||
$( '#submit' ).click( function(e) {
|
||||
submitButton = $(this).parentsUntil( '#addtag' );
|
||||
previewView = submitButton.siblings( '.term-image-wrap' ).children( '#upload_logo_preview' );
|
||||
clearInput = submitButton.siblings( '.term-image-wrap' ).children( '.upload_image_id' );
|
||||
|
||||
e.preventDefault();
|
||||
if ( $( previewView ).length ) {
|
||||
$( previewView ).delay( 1000 ).fadeOut( 200, function() {
|
||||
$(this).remove();
|
||||
$( clearInput ).val( '' );
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user