From: Peter T. <pet...@us...> - 2000-11-01 23:30:01
|
Update of /cvsroot/TWiki/twiki/templates In directory slayer.i.sourceforge.net:/tmp/cvs-serv10951 Modified Files: edit.tmpl preview.tmpl Log Message: 'Cancel' link in edit that unlocks topic Index: edit.tmpl =================================================================== RCS file: /cvsroot/TWiki/twiki/templates/edit.tmpl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** edit.tmpl 2000/10/21 08:22:09 1.5 --- edit.tmpl 2000/11/01 23:29:58 1.6 *************** *** 68,71 **** --- 68,72 ---- Topic <B>%TOPIC%</B> . { <INPUT type="submit" value=" Preview Changes "> <INPUT type="hidden" name="cmd" value="%CMD%"> + | <a href="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/%WEB%/%TOPIC%?unlock=on">Cancel</a> edit } </TD> Index: preview.tmpl =================================================================== RCS file: /cvsroot/TWiki/twiki/templates/preview.tmpl,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** preview.tmpl 2000/10/29 05:09:21 1.6 --- preview.tmpl 2000/11/01 23:29:58 1.7 *************** *** 4,7 **** --- 4,18 ---- <BASE href="%SCRIPTURL%/view%SCRIPTSUFFIX%/%WEB%/%TOPIC%"> <META NAME="ROBOTS" CONTENT="NOINDEX"> %HTTP_EQUIV_ON_PREVIEW% </HEAD> + <SCRIPT LANGUAGE="JavaScript"> + <!--HIDE + function launchWindow( theWeb, theTopic ) { + win = open("%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/" + theWeb + "/" + theTopic, theTopic, "titlebar=0,width=500,height=480,resizable,scrollbars"); + if( win ) { + win.focus(); + } + return false; + } + //STOP HIDING--> + </SCRIPT> <BODY bgcolor="#ffffff" background="%PREVIEWBGIMAGE%"> <TABLE width="100%" border="0" cellpadding="3" cellspacing="0"> *************** *** 41,45 **** <INPUT type="submit" value=" Save Changes "> <INPUT type="checkbox" name="unlock"> Release edit lock ! <font size="-1">(<a href="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/%TWIKIWEB%/UnlockTopic">help</a>)</font> } </TD> --- 52,56 ---- <INPUT type="submit" value=" Save Changes "> <INPUT type="checkbox" name="unlock"> Release edit lock ! <font size="-1">(<a target="UnlockTopic" onClick="return launchWindow('%TWIKIWEB%','UnlockTopic')" href="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/%TWIKIWEB%/UnlockTopic">help</a>)</font> } </TD> |