From 310a97912cc55c3983603c800afd0238a0ccebae Mon Sep 17 00:00:00 2001 From: Benjamin Meichsner Date: Sat, 26 Jan 2013 15:41:46 +0100 Subject: [PATCH] Fixed disabling submit_button in group order form. --- app/assets/javascripts/ordering.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/ordering.js b/app/assets/javascripts/ordering.js index cb940d0b..ac61155a 100644 --- a/app/assets/javascripts/ordering.js +++ b/app/assets/javascripts/ordering.js @@ -157,13 +157,13 @@ function updateBalance() { var bgcolor = ''; if (balance < 0) { bgcolor = '#FF0000'; - $('#submit_button').disabled = true; + $('#submit_button').attr('disabled', 'disabled') } else { - $('#submit_button').disabled = false; + $('#submit_button').removeAttr('disabled') } // update bgcolor for (i in itemTotal) { - $('#ltd_price_' + i).css('background-color', bgcolor); + $('#td_price_' + i).css('background-color', bgcolor); } }