Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2308,8 +2308,11 @@ |
2309 | 2309 | $this->getTitle()->getNamespace() != NS_SPECIAL && |
2310 | 2310 | in_array( $action, array( 'view', 'purge' ) ) && |
2311 | 2311 | $this->getUser()->getOption( 'editondblclick' ) |
2312 | | - ) { |
2313 | | - $this->addModules( 'mediawiki.action.view.dblClickEdit' ); |
| 2312 | + ) |
| 2313 | + { |
| 2314 | + $editUrl = $this->getTitle()->getLocalUrl( $sk->editUrlOptions() ); |
| 2315 | + $bodyAttrs['ondblclick'] = "document.location = '" . |
| 2316 | + Xml::escapeJsString( $editUrl ) . "'"; |
2314 | 2317 | } |
2315 | 2318 | |
2316 | 2319 | # Classes for LTR/RTL directionality support |
Index: trunk/phase3/resources/mediawiki.action/mediawiki.action.view.dblClickEdit.js |
— | — | @@ -1,12 +0,0 @@ |
2 | | -/* |
3 | | - * This module enables double-click-to-edit functionality |
4 | | - */ |
5 | | -jQuery( function( $ ) { |
6 | | - var url = $('#ca-edit a').attr('href'); |
7 | | - if ( url ) { |
8 | | - mw.util.$content.dblclick( function( e ) { |
9 | | - e.preventDefault(); |
10 | | - window.location = url; |
11 | | - } ); |
12 | | - } |
13 | | -} ); |
Index: trunk/phase3/resources/mediawiki.action/mediawiki.action.history.diff.css |
— | — | @@ -31,7 +31,6 @@ |
32 | 32 | font-weight: bold; |
33 | 33 | white-space: -moz-pre-wrap; |
34 | 34 | white-space: pre-wrap; |
35 | | - text-decoration: none; |
36 | 35 | } |
37 | 36 | |
38 | 37 | table.diff { |
Index: trunk/phase3/resources/Resources.php |
— | — | @@ -502,9 +502,6 @@ |
503 | 503 | 'jquery.byteLimit', |
504 | 504 | ), |
505 | 505 | ), |
506 | | - 'mediawiki.action.view.dblClickEdit' => array( |
507 | | - 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.dblClickEdit.js', |
508 | | - ), |
509 | 506 | 'mediawiki.action.view.rightClickEdit' => array( |
510 | 507 | 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js', |
511 | 508 | ), |
Index: trunk/phase3/skins/common/shared.css |
— | — | @@ -95,6 +95,15 @@ |
96 | 96 | clear: both; |
97 | 97 | } |
98 | 98 | |
| 99 | +/* |
| 100 | +* Add a checkered background image on hover for file description pages. Bug 26470 |
| 101 | +*/ |
| 102 | +.filehistory a img:hover, |
| 103 | +#file img:hover { |
| 104 | + /* @embed */ |
| 105 | + background: white url(images/Checker-16x16.png) repeat; |
| 106 | +} |
| 107 | + |
99 | 108 | table.filehistory th, |
100 | 109 | table.filehistory td { |
101 | 110 | vertical-align: top; |