=================================================================== RCS file: /cvsroot/twiki/twiki/lib/TWiki.pm,v retrieving revision 1.216 retrieving revision 1.217 diff -c -r1.216 -r1.217 *** twiki/twiki/lib/TWiki.pm 2003/05/13 07:38:37 1.216 --- twiki/twiki/lib/TWiki.pm 2003/06/04 20:57:50 1.217 *************** *** 84,90 **** $viewableAttachmentCount $noviewableAttachmentCount $superAdminGroup $doSuperAdminGroup $cgiQuery @publicWebList ! $formatVersion $OS $readTopicPermissionFailed $pageMode ); --- 84,90 ---- $viewableAttachmentCount $noviewableAttachmentCount $superAdminGroup $doSuperAdminGroup $cgiQuery @publicWebList ! $formatVersion $OS $script $readTopicPermissionFailed $pageMode ); *************** *** 506,511 **** --- 506,520 ---- } # ========================= + # Javascript that will be added to (some) template(s) + sub addScript + { + my( $extraScript ) = @_; + $script .= "\n$extraScript"; + } + + + # ========================= # writeHeaderFull: full header setup for Edit page; will be used # to improve cacheability for other pages in future. Setting # cache headers on Edit page fixes the Codev.BackFromPreviewLosesText