open edit help in separate window to work around IE data loss bug
authorGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 5 May 2004 12:03:12 +0000 (12:03 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 5 May 2004 12:03:12 +0000 (12:03 +0000)
includes/EditPage.php

index de75631..34fccee 100644 (file)
@@ -280,8 +280,10 @@ class EditPage {
 
                $cancel = $sk->makeKnownLink( $this->mTitle->getPrefixedURL(),
                  wfMsg( "cancel" ) );
-               $edithelp = $sk->makeKnownLink( wfMsg( "edithelppage" ),
-                 wfMsg( "edithelp" ) );
+               $edithelpurl = $sk->makeUrl( wfMsg( "edithelppage" ));
+               $edithelp = '<a onclick="javascript:window.open('.
+               "'$edithelpurl', 'helpwindow', 'width=610,height=400,left=10,top=10'".'); return false;" href="'.$edithelpurl.'">'.
+               wfMsg( "edithelp" ).'</a>';
                $copywarn = wfMsg( "copyrightwarning", $sk->makeKnownLink(
                  wfMsg( "copyrightpage" ) ) );