Index: trunk/extensions/CentralAuth/modules/ext.centralauth.js |
— | — | @@ -6,8 +6,8 @@ |
7 | 7 | y : 0 |
8 | 8 | }; |
9 | 9 | |
10 | | - $(document).on( 'mousemove', function updateCursorPosition( e ) { |
11 | | - cursorPosition.x = |
| 10 | + $(document).on( 'mousemove', function ( e ) { |
| 11 | + cursorPosition.x = |
12 | 12 | e.clientX |
13 | 13 | + ( document.documentElement.scrollLeft || document.body.scrollLeft ) |
14 | 14 | - document.documentElement.clientLeft; |
— | — | @@ -32,11 +32,11 @@ |
33 | 33 | content = document.getElementById( 'content' ) || document.getElementById( 'mw_content' ) || document.body; |
34 | 34 | $(content).append( $methodHint ); |
35 | 35 | } |
36 | | - |
| 36 | + |
37 | 37 | hintHtml = mw.html.element( 'p', { |
38 | 38 | 'class': 'merge-method-help-name' |
39 | 39 | }, mw.msg( 'centralauth-merge-method-' + methodName ) ) + mw.message( 'centralauth-merge-method-' + methodName + '-desc' ).escaped(); |
40 | | - |
| 40 | + |
41 | 41 | $methodHint |
42 | 42 | .html( hintHtml ) |
43 | 43 | .css({ |