From: Joseph C. <tex...@us...> - 2005-02-25 04:14:16
|
Update of /cvsroot/popfile/engine/skins/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5586/skins/default Modified Files: common-middle.thtml common-top.thtml history-javascript.thtml password-page.thtml Log Message: Define empty default body onLoad Javascript function called OnLoadHandler. Pages that need to use an onLoad function can redefine the empty function. This method fixes the limitations of the script to set focus on the password page in some browsers. Index: common-top.thtml =================================================================== RCS file: /cvsroot/popfile/engine/skins/default/common-top.thtml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** common-top.thtml 14 Jan 2005 09:30:24 -0000 1.4 --- common-top.thtml 25 Feb 2005 04:14:04 -0000 1.5 *************** *** 5,7 **** --- 5,8 ---- <link rel="icon" href="favicon.ico"> <link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME="Skin_Root">style.css" title="POPFile-Style"> + <script language="javascript">function OnLoadHandler(){}</script> </head> Index: common-middle.thtml =================================================================== RCS file: /cvsroot/popfile/engine/skins/default/common-middle.thtml,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** common-middle.thtml 16 Feb 2005 13:59:36 -0000 1.10 --- common-middle.thtml 25 Feb 2005 04:14:04 -0000 1.11 *************** *** 1,3 **** ! <body dir="<TMPL_VAR NAME="Localize_LanguageDirection">"> <table class="shellTop" align="center" width="100%" summary=""> <tr class="shellTopRow"> --- 1,3 ---- ! <body dir="<TMPL_VAR NAME="Localize_LanguageDirection">" onLoad="OnLoadHandler()"> <table class="shellTop" align="center" width="100%" summary=""> <tr class="shellTopRow"> Index: password-page.thtml =================================================================== RCS file: /cvsroot/popfile/engine/skins/default/password-page.thtml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** password-page.thtml 17 Feb 2005 08:51:28 -0000 1.4 --- password-page.thtml 25 Feb 2005 04:14:04 -0000 1.5 *************** *** 21,27 **** </form> ! <script language="JavaScript"> <!-- ! document.getElementById("theUsername").focus(); //--> </script> --- 21,29 ---- </form> ! <script language="Javascript"> <!-- ! function OnLoadHandler() { // redefine default OnLoadHandler ! document.getElementById("theUsername").focus(); ! } //--> </script> Index: history-javascript.thtml =================================================================== RCS file: /cvsroot/popfile/engine/skins/default/history-javascript.thtml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** history-javascript.thtml 31 Jan 2005 09:42:10 -0000 1.1 --- history-javascript.thtml 25 Feb 2005 04:14:04 -0000 1.2 *************** *** 1,8 **** ! <script language="JavaScript1.2"> ! if (document.getElementById("removeChecks")) ! document.getElementById("removeChecks").innerHTML = "<input type='checkbox' class='checkbox' onclick='javascript:toggleChecks(this);' title='Select All' />" ! function toggleChecks(x) ! { d = document.forms; for (var i=0; i < d.length; i++) --- 1,10 ---- ! <script language="JavaScript"> ! <!-- ! function OnLoadHandler() { // redefine default OnLoadHandler ! if (document.getElementById("removeChecks")) ! document.getElementById("removeChecks").innerHTML = "<input type='checkbox' class='checkbox' onclick='javascript:toggleChecks(this);' title='Select All' />" ! } ! function toggleChecks(x) { d = document.forms; for (var i=0; i < d.length; i++) *************** *** 14,16 **** --- 16,19 ---- return 0; } + --> </script> \ No newline at end of file |