Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2308,11 +2308,8 @@ |
2309 | 2309 | $this->getTitle()->getNamespace() != NS_SPECIAL && |
2310 | 2310 | in_array( $action, array( 'view', 'purge' ) ) && |
2311 | 2311 | $this->getUser()->getOption( 'editondblclick' ) |
2312 | | - ) |
2313 | | - { |
2314 | | - $editUrl = $this->getTitle()->getLocalUrl( $sk->editUrlOptions() ); |
2315 | | - $bodyAttrs['ondblclick'] = "document.location = '" . |
2316 | | - Xml::escapeJsString( $editUrl ) . "'"; |
| 2312 | + ) { |
| 2313 | + $this->addModules( 'mediawiki.action.view.dblClickEdit' ); |
2317 | 2314 | } |
2318 | 2315 | |
2319 | 2316 | # Classes for LTR/RTL directionality support |
Index: trunk/phase3/resources/mediawiki.action/mediawiki.action.history.diff.css |
— | — | @@ -31,6 +31,7 @@ |
32 | 32 | font-weight: bold; |
33 | 33 | white-space: -moz-pre-wrap; |
34 | 34 | white-space: pre-wrap; |
| 35 | + text-decoration: none; |
35 | 36 | } |
36 | 37 | |
37 | 38 | table.diff { |
Index: trunk/phase3/resources/mediawiki.action/mediawiki.action.view.dblClickEdit.js |
— | — | @@ -0,0 +1,12 @@ |
| 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 | +} ); |
Property changes on: trunk/phase3/resources/mediawiki.action/mediawiki.action.view.dblClickEdit.js |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 14 | + native |
Index: trunk/phase3/resources/Resources.php |
— | — | @@ -502,6 +502,9 @@ |
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 | + ), |
506 | 509 | 'mediawiki.action.view.rightClickEdit' => array( |
507 | 510 | 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js', |
508 | 511 | ), |
Index: trunk/phase3/skins/common/shared.css |
— | — | @@ -95,15 +95,6 @@ |
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 | | - |
108 | 99 | table.filehistory th, |
109 | 100 | table.filehistory td { |
110 | 101 | vertical-align: top; |