Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1684,12 +1684,6 @@ |
1685 | 1685 | $classes[] = $attribs['class']; |
1686 | 1686 | $attribs['class'] = implode( ' ', $classes ); |
1687 | 1687 | } |
1688 | | - |
1689 | | - # Set focus to the edit box on load, except on preview or diff, where it would interfere with the display |
1690 | | - if ( !$this->preview && !$this->diff ) { |
1691 | | - global $wgOut; |
1692 | | - $wgOut->setOnloadHandler( 'document.editform.wpTextbox1.focus();' ); |
1693 | | - } |
1694 | 1688 | |
1695 | 1689 | $this->showTextbox( isset($textoverride) ? $textoverride : $this->textbox1, 'wpTextbox1', $attribs ); |
1696 | 1690 | } |
Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -21,7 +21,6 @@ |
22 | 22 | |
23 | 23 | var $mAllowUserJs; |
24 | 24 | var $mSuppressQuickbar = false; |
25 | | - var $mOnloadHandler = ''; |
26 | 25 | var $mDoNothing = false; |
27 | 26 | var $mContainsOldMagic = 0, $mContainsNewMagic = 0; |
28 | 27 | var $mIsArticleRelated = true; |
— | — | @@ -388,8 +387,6 @@ |
389 | 388 | public function setPrintable() { $this->mPrintable = true; } |
390 | 389 | public function isPrintable() { return $this->mPrintable; } |
391 | 390 | public function getFeedAppendQuery() { return $this->mFeedLinksAppendQuery; } |
392 | | - public function setOnloadHandler( $js ) { $this->mOnloadHandler = $js; } |
393 | | - public function getOnloadHandler() { return $this->mOnloadHandler; } |
394 | 391 | public function disable() { $this->mDoNothing = true; } |
395 | 392 | public function isDisabled() { return $this->mDoNothing; } |
396 | 393 | |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -672,7 +672,6 @@ |
673 | 673 | $s = 'document.location = "' .Xml::escapeJsString( $s ) .'";'; |
674 | 674 | $a += array( 'ondblclick' => $s ); |
675 | 675 | } |
676 | | - $a['onload'] = $wgOut->getOnloadHandler(); |
677 | 676 | $a['class'] = |
678 | 677 | 'mediawiki' . |
679 | 678 | ' '.( $wgContLang->getDir() ). |
Index: trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_EditPageAjax.php |
— | — | @@ -637,11 +637,6 @@ |
638 | 638 | $subjectpreview = ''; |
639 | 639 | } |
640 | 640 | |
641 | | - # Set focus to the edit box on load, except on preview or diff, where it would interfere with the display |
642 | | - /*if( !$this->preview && !$this->diff ) { |
643 | | - $wgOut->setOnloadHandler( 'document.editform.wpTextbox1.focus()' ); |
644 | | - }*/ |
645 | | - |
646 | 641 | $templates = ( $this->preview || $this->section != '' ) ? $this->mPreviewTemplates : $this->mArticle->getUsedTemplates(); |
647 | 642 | $formattedtemplates = $sk->formatTemplates( $templates, $this->preview, $this->section != '' ); |
648 | 643 | |