r114935 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114934‎ | r114935 | r114936 >
Date:00:54, 17 April 2012
Author:bsitu
Status:deferred
Tags:
Comment:
adding dependency to ext.pageTriage.article module
Modified paths:
  • /trunk/extensions/PageTriage/PageTriage.php (modified) (history)
  • /trunk/extensions/PageTriage/modules/ext.pageTriage.article/ext.pageTriage.article.js (modified) (history)

Diff [purge]

Index: trunk/extensions/PageTriage/modules/ext.pageTriage.article/ext.pageTriage.article.js
@@ -1,8 +1,4 @@
22 ( function( $ ) {
3 - if ( !mw.pageTriage ) {
4 - mw.pageTriage = {};
5 - }
6 -
73 mw.pageTriage.action = {
84 submit: function() {
95 apiRequest = {
@@ -34,6 +30,7 @@
3531 $( '.mw-pagetriage-markpatrolled-link' )
3632 .click( function() {
3733 mw.pageTriage.action.submit();
 34+ return false;
3835 } )
3936 .end();
4037 } ) ( jQuery );
\ No newline at end of file
Index: trunk/extensions/PageTriage/PageTriage.php
@@ -315,6 +315,9 @@
316316 );
317317
318318 $wgResourceModules['ext.pageTriage.article'] = $ptResourceTemplate + array(
 319+ 'dependencies' => array(
 320+ 'ext.pageTriage.models'
 321+ ),
319322 'styles' => 'ext.pageTriage.article/ext.pageTriage.article.css',
320323 'scripts' => 'ext.pageTriage.article/ext.pageTriage.article.js',
321324 'messages' => array (

Status & tagging log