From: jeff Date: Tue, 17 Nov 2009 20:56:32 +0000 (+0000) Subject: work around ie7 javascript issues X-Git-Tag: root_of_svc_elec_features~677 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=2e5ab3c55cab5d72c3f41518dba2ed728e991b90 work around ie7 javascript issues --- diff --git a/httemplate/edit/elements/ApplicationCommon.html b/httemplate/edit/elements/ApplicationCommon.html index 181430c5a..08e1d46e6 100644 --- a/httemplate/edit/elements/ApplicationCommon.html +++ b/httemplate/edit/elements/ApplicationCommon.html @@ -283,6 +283,7 @@ function do_change_amount (what) { var amount_cell = document.getElementById('original_amount'); var inputs = amount_cell.getElementsByTagName('input'); if (inputs.length) { + src_amount_changed(); amount_cell.innerHTML = '<% $money_char %>' + inputs.item(0).value; } else { amount_cell.innerHTML = '<% $money_char %>'; @@ -298,11 +299,16 @@ function do_change_amount (what) { } } -function src_amount_changed (what) { - what.form.src_amount.value = what.value; - var unapplied_cell = document.getElementById('unapplied_amount'); - unapplied_cell.innerHTML = '<% $money_char %>' + what.value + ''; - set_amount_color(what); +function src_amount_changed () { + //alert('src_amount_changed called'); + var entered_amount = document.getElementById('entered_amount'); + if ( entered_amount ) { + entered_amount.form.src_amount.value = entered_amount.value; + var unapplied_cell = document.getElementById('unapplied_amount'); + unapplied_cell.innerHTML = '<% $money_char %>' + entered_amount.value + ''; + set_amount_color(entered_amount); + } + return true; } @@ -335,7 +341,15 @@ function src_amount_changed (what) {
-
+