Index: trunk/extensions/CodeReview/CodeReview.php |
— | — | @@ -151,7 +151,8 @@ |
152 | 152 | |
153 | 153 | // Revision tooltips CodeRevisionView: |
154 | 154 | $wgResourceModules['ext.codereview.tooltips'] = array( |
155 | | - 'scripts' => 'ext.codereview.tooltips.js' |
| 155 | + 'scripts' => 'ext.codereview.tooltips.js', |
| 156 | + 'dependencies' => 'jquery.tipsy' |
156 | 157 | ) + $commonModuleInfo; |
157 | 158 | |
158 | 159 | // If you are running a closed svn, fill the following two lines with the username and password |
Index: trunk/extensions/CodeReview/modules/ext.codereview.tooltips.js |
— | — | @@ -48,6 +48,4 @@ |
49 | 49 | }); |
50 | 50 | }; |
51 | 51 | |
52 | | -mw.loader.using( 'jquery.tipsy', function(){ |
53 | | - $( document ).ready( CodeTooltipsInit ); |
54 | | -}); |
| 52 | +$( document ).ready( CodeTooltipsInit ); |
Index: trunk/extensions/CodeReview/ui/SpecialCode.php |
— | — | @@ -19,6 +19,7 @@ |
20 | 20 | $this->setHeaders(); |
21 | 21 | // Base styles used for all code review UI actions. |
22 | 22 | $wgOut->addModules( 'ext.codereview' ); |
| 23 | + $wgOut->addModules( 'ext.codereview.tooltips' ); |
23 | 24 | |
24 | 25 | $view = $this->getViewFrom( $subpage ); |
25 | 26 | if( $view ) { |
Index: trunk/extensions/CodeReview/ui/CodeRevisionListView.php |
— | — | @@ -78,8 +78,6 @@ |
79 | 79 | |
80 | 80 | $navBar = $pager->getNavigationBar(); |
81 | 81 | |
82 | | - $wgOut->addModules( 'ext.codereview.tooltips' ); |
83 | | - |
84 | 82 | $wgOut->addHTML( $pathForm ); |
85 | 83 | |
86 | 84 | $wgOut->addHTML( |