From: Joseph C. <tex...@us...> - 2005-03-04 23:40:47
|
Update of /cvsroot/popfile/engine/skins/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26484/skins/default Modified Files: common-middle.thtml history-javascript.thtml history-page.thtml Added Files: common-javascript.thtml Log Message: Trying out confirmation dialog on history page remove buttons. And move focus to Search box on history page load. Index: common-middle.thtml =================================================================== RCS file: /cvsroot/popfile/engine/skins/default/common-middle.thtml,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** common-middle.thtml 25 Feb 2005 04:14:04 -0000 1.11 --- common-middle.thtml 4 Mar 2005 23:40:38 -0000 1.12 *************** *** 1,2 **** --- 1,4 ---- + <TMPL_INCLUDE NAME="common-javascript.thtml"> + <body dir="<TMPL_VAR NAME="Localize_LanguageDirection">" onLoad="OnLoadHandler()"> <table class="shellTop" align="center" width="100%" summary=""> Index: history-page.thtml =================================================================== RCS file: /cvsroot/popfile/engine/skins/default/history-page.thtml,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** history-page.thtml 16 Feb 2005 23:15:55 -0000 1.56 --- history-page.thtml 4 Mar 2005 23:40:38 -0000 1.57 *************** *** 235,241 **** <tr> <td colspan="<TMPL_VAR NAME="History_Colspan">"> ! <input type="submit" class="submit removeButton" name="clearchecked" value="<TMPL_VAR NAME="Localize_History_RemoveChecked">" /> ! <input type="submit" class="submit removeButton" name="clearpage" value="<TMPL_VAR NAME="Localize_History_RemovePage">" /> ! <input type="submit" class="submit removeButton" name="clearall" value="<TMPL_VAR NAME="Localize_History_RemoveAll"> (<TMPL_VAR NAME="History_Count">)" /> </td> <td> --- 235,241 ---- <tr> <td colspan="<TMPL_VAR NAME="History_Colspan">"> ! <input type="submit" class="submit removeButton" name="clearchecked" onClick="return confirmClick(this)" value="<TMPL_VAR NAME="Localize_History_RemoveChecked">" /> ! <input type="submit" class="submit removeButton" name="clearpage" onClick="return confirmClick(this)" value="<TMPL_VAR NAME="Localize_History_RemovePage">" /> ! <input type="submit" class="submit removeButton" name="clearall" onClick="return confirmClick(this)" value="<TMPL_VAR NAME="Localize_History_RemoveAll"> (<TMPL_VAR NAME="History_Count">)" /> </td> <td> Index: history-javascript.thtml =================================================================== RCS file: /cvsroot/popfile/engine/skins/default/history-javascript.thtml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** history-javascript.thtml 25 Feb 2005 04:14:04 -0000 1.2 --- history-javascript.thtml 4 Mar 2005 23:40:38 -0000 1.3 *************** *** 4,7 **** --- 4,9 ---- if (document.getElementById("removeChecks")) document.getElementById("removeChecks").innerHTML = "<input type='checkbox' class='checkbox' onclick='javascript:toggleChecks(this);' title='Select All' />" + + document.getElementById("historySearch").focus(); } --- NEW FILE: common-javascript.thtml --- <script language="JavaScript"> <!-- warnings = 1; // this will be replaced with an Advanced variable that the Template will insert here function confirmClick(x) { if(warnings) return confirm ("Are you sure you want to do this?"); else return 0; } --> </script> |