Index: trunk/extensions/PageTriage/modules/ext.pageTriage.article/ext.pageTriage.article.js |
— | — | @@ -1,8 +1,4 @@ |
2 | 2 | ( function( $ ) { |
3 | | - if ( !mw.pageTriage ) { |
4 | | - mw.pageTriage = {}; |
5 | | - } |
6 | | - |
7 | 3 | mw.pageTriage.action = { |
8 | 4 | submit: function() { |
9 | 5 | apiRequest = { |
— | — | @@ -34,6 +30,7 @@ |
35 | 31 | $( '.mw-pagetriage-markpatrolled-link' ) |
36 | 32 | .click( function() { |
37 | 33 | mw.pageTriage.action.submit(); |
| 34 | + return false; |
38 | 35 | } ) |
39 | 36 | .end(); |
40 | 37 | } ) ( jQuery ); |
\ No newline at end of file |
Index: trunk/extensions/PageTriage/PageTriage.php |
— | — | @@ -315,6 +315,9 @@ |
316 | 316 | ); |
317 | 317 | |
318 | 318 | $wgResourceModules['ext.pageTriage.article'] = $ptResourceTemplate + array( |
| 319 | + 'dependencies' => array( |
| 320 | + 'ext.pageTriage.models' |
| 321 | + ), |
319 | 322 | 'styles' => 'ext.pageTriage.article/ext.pageTriage.article.css', |
320 | 323 | 'scripts' => 'ext.pageTriage.article/ext.pageTriage.article.js', |
321 | 324 | 'messages' => array ( |