From 5e5c408ded395ae70c4ce3878ed260674253cccd Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 5 Oct 2008 06:07:36 +0000 Subject: finish UI improvements wrt refunds: now you have to post a check or cash refund explicitly, no more implicit creation by 'applying' credits. don't show useless application links. don't enable apply button until you pick an invoice/refund. RT#3812 --- httemplate/edit/elements/ApplicationCommon.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'httemplate/edit/elements') diff --git a/httemplate/edit/elements/ApplicationCommon.html b/httemplate/edit/elements/ApplicationCommon.html index 0e6c49975..a485d37de 100644 --- a/httemplate/edit/elements/ApplicationCommon.html +++ b/httemplate/edit/elements/ApplicationCommon.html @@ -43,7 +43,7 @@ Examples: <% include('/elements/error.html') %> -
+ <% $src_thing %> #<% $src_pkeyvalue %>
@@ -79,6 +79,13 @@ Examples: function changed(what) { dst = what.options[what.selectedIndex].value; + if ( dst == '' ) { + what.form.submit.disabled=true; + return true; + } + + what.form.submit.disabled=false; + % foreach my $dst ( @dst ) { if ( dst == <% $dst->$dst_pkey %> ) { @@ -97,7 +104,7 @@ Apply to: <% $dst_thing %>: +
-- cgit v1.2.1