[freeside-commits] freeside/httemplate/pref pref.html, 1.2,
1.3 pref-process.html, 1.2, 1.3
Ivan,,,
ivan at wavetail.420.am
Mon Jan 29 10:50:12 PST 2007
Update of /home/cvs/cvsroot/freeside/httemplate/pref
In directory wavetail:/tmp/cvs-serv1161
Modified Files:
pref.html pref-process.html
Log Message:
record resolution & colro depth in user prefs
Index: pref-process.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/pref/pref-process.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- pref-process.html 26 Jan 2007 08:04:36 -0000 1.2
+++ pref-process.html 29 Jan 2007 18:50:10 -0000 1.3
@@ -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);
Index: pref.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/pref/pref.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- pref.html 26 Jan 2007 08:04:36 -0000 1.2
+++ pref.html 29 Jan 2007 18:50:10 -0000 1.3
@@ -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 @@
</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') %>
More information about the freeside-commits
mailing list