add invalid funds message on grouporder page
This commit is contained in:
parent
82f0935d65
commit
260c51eef5
3 changed files with 7 additions and 7 deletions
|
|
@ -180,16 +180,12 @@ function updateBalance() {
|
|||
$('#new_balance').html(I18n.l("currency", balance));
|
||||
$('#total_balance').val(I18n.l("currency", balance));
|
||||
// determine bgcolor and submit button state according to balance
|
||||
var bgcolor = '';
|
||||
if (balance < minimumBalance) {
|
||||
bgcolor = '#FF0000';
|
||||
$('#submit_button').attr('disabled', 'disabled')
|
||||
$('#available_funds_error').css('display', 'block')
|
||||
} else {
|
||||
$('#submit_button').removeAttr('disabled')
|
||||
}
|
||||
// update bgcolor
|
||||
for (i in itemTotal) {
|
||||
$('#td_price_' + i).css('background-color', bgcolor);
|
||||
$('#available_funds_error').css('display', 'none')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -232,4 +228,6 @@ $(function() {
|
|||
});
|
||||
|
||||
updateButtons($(document));
|
||||
|
||||
$(document).ready(updateBalance);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue