diff options
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/pref/pref-process.html | 11 | ||||
-rw-r--r-- | httemplate/pref/pref.html | 9 |
2 files changed, 15 insertions, 5 deletions
diff --git a/httemplate/pref/pref-process.html b/httemplate/pref/pref-process.html index 221edc682..e66045b9b 100644 --- a/httemplate/pref/pref-process.html +++ b/httemplate/pref/pref-process.html @@ -27,10 +27,13 @@ % % } % -% $error ||= $access_user->replace( { map { $_ => scalar($cgi->param($_)) } -% qw( menu_position ) #XXX autogen -% } -% ); +% $error ||= $access_user->replace( { +% map { $_ => scalar($cgi->param($_)) } +% #XXX autogen +% qw( menu_position +% height width availHeight availWidth colorDepth +% ) +% } ); % % if ( $error ) { % $cgi->param('error', $error); diff --git a/httemplate/pref/pref.html b/httemplate/pref/pref.html index 2dca3b84d..507a897d7 100644 --- a/httemplate/pref/pref.html +++ b/httemplate/pref/pref.html @@ -1,6 +1,6 @@ <% include('/elements/header.html', 'Preferences for '. getotaker ) %> -<FORM METHOD="POST" ACTION="pref-process.html"> +<FORM METHOD="POST" NAME="pref_form" ACTION="pref-process.html"> <% include('/elements/error.html') %> @@ -41,6 +41,13 @@ Interface </TABLE> <BR> +% foreach my $prop (qw( height width availHeight availWidth colorDepth )) { + <INPUT TYPE="hidden" NAME="<% $prop %>" VALUE=""> + <SCRIPT TYPE="text/javascript"> + document.pref_form.<% $prop %>.value = screen.<% $prop %>; + </script> +% } + <INPUT TYPE="submit" VALUE="Update preferences"> <% include('/elements/footer.html') %> |