Skip to content

Commit

Permalink
fix(earning-suggession): save button not disabled when commission is …
Browse files Browse the repository at this point in the history
…negative value
  • Loading branch information
sabbir1991 committed Apr 28, 2018
1 parent 425dc2e commit c16565f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/dokan.js
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ jQuery(function($) {
$('select#product_cat').on('change', function() {
dokan_show_earning_suggestion();

if ( $( '#product_type' ).val() == 'variable' ) {
if ( $( '#product_type' ).val() == 'variable' || $( '#product_type' ).val() == undefined ) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion assets/src/js/product-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@
$('select#product_cat').on('change', function() {
dokan_show_earning_suggestion();

if ( $( '#product_type' ).val() == 'variable' ) {
if ( $( '#product_type' ).val() == 'variable' || $( '#product_type' ).val() == undefined ) {
return;
}

Expand Down

0 comments on commit c16565f

Please sign in to comment.