r99920 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99919‎ | r99920 | r99921 >
Date:22:18, 15 October 2011
Author:maxsem
Status:ok
Tags:
Comment:
Forgot to remove these
Modified paths:
  • /trunk/extensions/ApiSandbox/ext.apiSandbox.js (modified) (history)

Diff [purge]

Index: trunk/extensions/ApiSandbox/ext.apiSandbox.js
@@ -192,8 +192,8 @@
193193 getParamInfo( { mainmodule: 1, pagesetmodule: 1, modules: 'query' },
194194 function() {},
195195 function() {
196 - paramInfo.mainmodule.parameters.shift(); // remove format
197 - paramInfo.mainmodule.parameters.shift(); // ...and action
 196+ paramInfo.mainmodule.parameters = paramInfo.mainmodule.parameters.slice( 2 ); // remove format and action
 197+ paramInfo.modules.query.parameters = paramInfo.modules.query.parameters.slice( 3 );
198198 $genericContainer = $( '#api-sandbox-generic-inputs > div' );
199199 genericRequest = new UiBuilder( $genericContainer, paramInfo.mainmodule, '' );
200200 queryRequest = new UiBuilder( $queryContainer, paramInfo.modules.query, '',

Status & tagging log