Skip to content

Commit

Permalink
fix: enable terms and condition checkbox if registered user is found …
Browse files Browse the repository at this point in the history
…with an email address (#447)

* fix: enable terms and condition checkbox if registered user is found with an email address

* refactor: use var instead of const while defining variable
  • Loading branch information
saimonh3 authored and sabbir1991 committed Dec 5, 2018
1 parent 3a4c21a commit e5d90f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/js/vendor-registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ var Dokan_Vendor_Registration = {
$(function() {
Dokan_Vendor_Registration.init();

$('.show_if_seller').find( 'input, select' ).attr( 'disabled', 'disabled' );
var target_element = $( 'input, select' ).not( '#tc_agree' );

$('.show_if_seller').find( target_element ).attr( 'disabled', 'disabled' );

// disable migration button if checkbox isn't checked
if ( $( '.tc_check_box' ).length > 0 ){
Expand Down

0 comments on commit e5d90f2

Please sign in to comment.