diff options
author | jeff <jeff> | 2009-11-17 20:56:32 +0000 |
---|---|---|
committer | jeff <jeff> | 2009-11-17 20:56:32 +0000 |
commit | 2e5ab3c55cab5d72c3f41518dba2ed728e991b90 (patch) | |
tree | 22c8500924a38c698af73f2c18093eda3bee8425 /httemplate | |
parent | 56fd2a280fa3aba5ae8fcc65ab775ef28dd730d9 (diff) |
work around ie7 javascript issues
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/edit/elements/ApplicationCommon.html | 26 |
1 files changed, 20 insertions, 6 deletions
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 = '<B><% $money_char %></B>' + 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 = '<B><% $money_char %>' + what.value + '</B>'; - 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 = '<B><% $money_char %>' + entered_amount.value + '</B>'; + set_amount_color(entered_amount); + } + return true; } </SCRIPT> @@ -335,7 +341,15 @@ function src_amount_changed (what) { </TABLE> <BR> -<CENTER><INPUT TYPE="submit" VALUE="Apply" NAME="submit" ID="submit" DISABLED></CENTER> +<CENTER><INPUT TYPE="submit" + VALUE="Apply" + NAME="submit" + ID="submit" +% if ($use_sub_dst_thing && $can_change_credit) { + onClick="src_amount_changed()" +% } + DISABLED +></CENTER> </FORM> |