summaryrefslogtreecommitdiff
path: root/httemplate/edit/svc_forward.cgi
diff options
context:
space:
mode:
authorivan <ivan>2004-03-03 06:20:20 +0000
committerivan <ivan>2004-03-03 06:20:20 +0000
commitf4247c22a77543afa76f4bc81281bdda71f776cf (patch)
tree58689c8e13d635ea0685ce1fd9093ff7ebdf8532 /httemplate/edit/svc_forward.cgi
parent4594b30617c2759dc38a51a1ea23a336abbeb24a (diff)
grey out inactive text boxes as well as disable them (IE doesn't grey out disabled text dialogs)
Diffstat (limited to 'httemplate/edit/svc_forward.cgi')
-rwxr-xr-xhttemplate/edit/svc_forward.cgi8
1 files changed, 6 insertions, 2 deletions
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: <B><%= $part_svc->svc %></B><BR><BR>
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";
}
}
</SCRIPT>
@@ -153,7 +157,7 @@ function dstchanged(what) {
<% } %>
</SELECT>
<% if ( $svc_forward->dbdef_table->column('src') ) { %>
-<INPUT TYPE="text" NAME="src" VALUE="<%= $src %>" <%= ( $src || !scalar(%email) ) ? '' : 'DISABLED' %>>
+<INPUT TYPE="text" NAME="src" VALUE="<%= $src %>" <%= ( $src || !scalar(%email) ) ? '' : 'DISABLED STYLE="background-color: lightgrey"' %>>
<% } %>
</TD></TR>
@@ -164,7 +168,7 @@ function dstchanged(what) {
<% } %>
<OPTION <%= $dst ? 'SELECTED' : '' %> VALUE="0">(other email address)</OPTION>
</SELECT>
-<INPUT TYPE="text" NAME="dst" VALUE="<%= $dst %>" <%= ( $dst || !scalar(%email) ) ? '' : 'DISABLED' %>>
+<INPUT TYPE="text" NAME="dst" VALUE="<%= $dst %>" <%= ( $dst || !scalar(%email) ) ? '' : 'DISABLED STYLE="background-color: lightgrey"' %>>
</TD></TR>
</TABLE>
<BR><INPUT TYPE="submit" VALUE="Submit">