Skip to content

Commit

Permalink
Fix when Floating label is disable impress-org#1050
Browse files Browse the repository at this point in the history
Fix when user disable the floting label for the form
  • Loading branch information
raftaar1191 committed Jul 19, 2017
1 parent feb7869 commit b2e5f7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/frontend/give-checkout-global.js
Expand Up @@ -46,7 +46,7 @@ jQuery(function ($) {
} else {
html = '<input type="text" id="card_state" name="card_state" class="cart-state give-input required" placeholder="' + states_label + '" value=""/>';
}
$form.find('input[name="card_state"], select[name="card_state"]').closest( 'div' ).find( 'label' ).text( states_label );
$form.find('input[name="card_state"], select[name="card_state"]').closest( 'p' ).find( 'label' ).text( states_label );
$form.find('input[name="card_state"], select[name="card_state"]').replaceWith( html );

// Check if user want to show the feilds or not.
Expand Down
2 changes: 1 addition & 1 deletion assets/js/frontend/give-checkout-global.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b2e5f7c

Please sign in to comment.