From: Joseph C. <tex...@us...> - 2005-08-21 08:37:40
|
Update of /cvsroot/popfile/engine/skins/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10176/skins/default Modified Files: common-javascript.thtml history-javascript.thtml Log Message: Use new advanced preference to control display of confirmation dialogs on Remove buttons. Remove old version of confirmClick function. Index: history-javascript.thtml =================================================================== RCS file: /cvsroot/popfile/engine/skins/default/history-javascript.thtml,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** history-javascript.thtml 25 May 2005 14:54:42 -0000 1.7 --- history-javascript.thtml 21 Aug 2005 08:37:32 -0000 1.8 *************** *** 15,22 **** return 0; } - - function confirmClick(message) { - return confirm (message); - } --> </script> --- 15,18 ---- Index: common-javascript.thtml =================================================================== RCS file: /cvsroot/popfile/engine/skins/default/common-javascript.thtml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** common-javascript.thtml 22 May 2005 09:37:06 -0000 1.4 --- common-javascript.thtml 21 Aug 2005 08:37:30 -0000 1.5 *************** *** 1,9 **** <script type="text/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; } --- 1,13 ---- <script type="text/javascript"> ! <TMPL_IF NAME="If_Javascript_OK"> ! warnings = 1; // confirmation dialogs enabled ! <TMPL_ELSE> ! warnings = 0; // confirmation dialogs disabled ! </TMPL_IF> ! function confirmClick(message) { if(warnings) ! return confirm (message); else return 0; } |