From 63fe62db7bb1acf1f78683ff530a1dc122ffb496 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 3 Mar 2004 06:20:21 +0000 Subject: [PATCH] grey out inactive text boxes as well as disable them (IE doesn't grey out disabled text dialogs) --- httemplate/edit/svc_forward.cgi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/httemplate/edit/svc_forward.cgi b/httemplate/edit/svc_forward.cgi index cfb2c8bf7..6ac6a928b 100755 --- a/httemplate/edit/svc_forward.cgi +++ b/httemplate/edit/svc_forward.cgi @@ -130,15 +130,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"; } } @@ -154,7 +158,7 @@ function dstchanged(what) { <% } %> <% if ( $svc_forward->dbdef_table->column('src') ) { %> -> +> <% } %> @@ -165,7 +169,7 @@ function dstchanged(what) { <% } %> -> +>
-- 2.20.1