From: ivan Date: Wed, 3 Mar 2004 06:20:20 +0000 (+0000) Subject: grey out inactive text boxes as well as disable them (IE doesn't grey out disabled... X-Git-Tag: NET_WHOIS_RAW_0_31~110 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=f4247c22a77543afa76f4bc81281bdda71f776cf grey out inactive text boxes as well as disable them (IE doesn't grey out disabled text dialogs) --- diff --git a/httemplate/edit/svc_forward.cgi b/httemplate/edit/svc_forward.cgi index 2e6c5f1a0..2b9d35ad1 100755 --- a/httemplate/edit/svc_forward.cgi +++ b/httemplate/edit/svc_forward.cgi @@ -129,15 +129,19 @@ Service: <%= $part_svc->svc %>

function srcchanged(what) { if ( what.options[what.selectedIndex].value == 0 ) { what.form.src.disabled = false; + what.form.src.style.backgroundColor = "white"; } else { what.form.src.disabled = true; + what.form.src.style.backgroundColor = "lightgrey"; } } function dstchanged(what) { if ( what.options[what.selectedIndex].value == 0 ) { what.form.dst.disabled = false; + what.form.dst.style.backgroundColor = "white"; } else { what.form.dst.disabled = true; + what.form.dst.style.backgroundColor = "lightgrey"; } } @@ -153,7 +157,7 @@ function dstchanged(what) { <% } %> <% if ( $svc_forward->dbdef_table->column('src') ) { %> -> +> <% } %> @@ -164,7 +168,7 @@ function dstchanged(what) { <% } %> -> +>