Lines 143-149
$( document ).ready(function() {
Link Here
|
143 |
return new Promise(function(resolve, reject) { |
143 |
return new Promise(function(resolve, reject) { |
144 |
var threshold = $(self).data('threshold'); |
144 |
var threshold = $(self).data('threshold'); |
145 |
var help = $(self).parent().siblings('.help-block'); |
145 |
var help = $(self).parent().siblings('.help-block'); |
146 |
if(threshold == '' || threshold <= total) { |
146 |
if(!threshold || threshold == '' || threshold <= total) { |
147 |
$(self).prop('disabled', false); |
147 |
$(self).prop('disabled', false); |
148 |
help.addClass('hide'); |
148 |
help.addClass('hide'); |
149 |
} else { |
149 |
} else { |
150 |
- |
|
|