diff options
author | Gabriel Wicke <gwicke@users.mediawiki.org> | 2004-05-05 12:03:12 +0000 |
---|---|---|
committer | Gabriel Wicke <gwicke@users.mediawiki.org> | 2004-05-05 12:03:12 +0000 |
commit | 6b7f7a0d34ca36fa9045134214e2a20aabf55b28 (patch) | |
tree | 56f2c8cc800132eebbc237f45054e718db72a278 /includes/EditPage.php | |
parent | 8199d281df8a8e05753e34df6bdc65b7a1eb838a (diff) | |
download | mediawikicore-6b7f7a0d34ca36fa9045134214e2a20aabf55b28.tar.gz mediawikicore-6b7f7a0d34ca36fa9045134214e2a20aabf55b28.zip |
open edit help in separate window to work around IE data loss bug
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/3485
Diffstat (limited to 'includes/EditPage.php')
-rw-r--r-- | includes/EditPage.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/EditPage.php b/includes/EditPage.php index de75631c012c..34fccee1b713 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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" ) ) ); |