Revision: 1283
http://mrbs.svn.sourceforge.net/mrbs/?rev=1283&view=rev
Author: cimorrison
Date: 2009-12-13 18:22:07 +0000 (Sun, 13 Dec 2009)
Log Message:
-----------
- Added a missing '>' to the body tag
- Set the focus to the username on the logon form on page load
Modified Paths:
--------------
mrbs/trunk/web/Themes/default/header.inc
Modified: mrbs/trunk/web/Themes/default/header.inc
===================================================================
--- mrbs/trunk/web/Themes/default/header.inc 2009-12-11 16:35:15 UTC (rev
1282)
+++ mrbs/trunk/web/Themes/default/header.inc 2009-12-13 18:22:07 UTC (rev
1283)
@@ -215,15 +215,36 @@
}
?>
+// actions to be taken on page load
+function init()
+{
+ <?php // ALL PAGES ?>
+ // if there's a logon box, set the username input field in focus
+ var logonForm = document.getElementById('logon');
+ if (logonForm && logonForm.NewUserName)
+ {
+ logonForm.NewUserName.focus();
+ }
+
+ <?php
+ // PENDING.PHP
+ if ($page == 'pending')
+ {
+ ?>
+ activate_sub_tables();
+ <?php
+ }
+ ?>
+}
+
+
//]]>
</script>
</head>
<?php
// Put the filename in as a class to aid styling.
// (Use a class rather than id to avoid specificity problems)
- $body_tag = "<body class=\"$page\"";
- $body_tag .= ($page == 'pending') ? " onLoad=\"activate_sub_tables()\"" : "";
- echo "$body_tag\n";
+ echo "<body class=\"$page\" onLoad =\"init()\">\n";
?>
<div class="screenonly">
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits