From fa6359877aee9089d52a19ce0bf8b5216047ee44 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 11 Dec 2003 05:52:15 +0000 Subject: [PATCH] (fix regression) Don't select the edit box on preview; this interferes with seeing what's going on. --- includes/EditPage.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index ef6f6afa29..dd2bd08dad 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -288,7 +288,10 @@ class EditPage { $editsummary="{$summary}:
"; } - $wgOut->setOnloadHandler( "document.editform.wpTextbox1.focus()" ); + if( $_GET["action"] == "edit" ) { + # Don't select the edit box on preview; this interferes with seeing what's going on. + $wgOut->setOnloadHandler( "document.editform.wpTextbox1.focus()" ); + } $wgOut->addHTML( "
-- 2.20.1