dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Block same-file reuploads"
[lhc/web/wiklou.git]
/
resources
/
src
/
mediawiki.special
/
mediawiki.special.apisandbox.js
diff --git
a/resources/src/mediawiki.special/mediawiki.special.apisandbox.js
b/resources/src/mediawiki.special/mediawiki.special.apisandbox.js
index
694f86a
..
7029116
100644
(file)
--- a/
resources/src/mediawiki.special/mediawiki.special.apisandbox.js
+++ b/
resources/src/mediawiki.special/mediawiki.special.apisandbox.js
@@
-194,7
+194,7
@@
multi: function () {
var map = this.paramInfo.submodules,
v = this.isDisabled() ? this.paramInfo[ 'default' ] : this.getApiValue();
multi: function () {
var map = this.paramInfo.submodules,
v = this.isDisabled() ? this.paramInfo[ 'default' ] : this.getApiValue();
- return v === undefined || v === '' ? [] :
$.map( String( v ).split( '|' ),
function ( v ) {
+ return v === undefined || v === '' ? [] :
String( v ).split( '|' ).map(
function ( v ) {
return { value: v, path: map[ v ] };
} );
}
return { value: v, path: map[ v ] };
} );
}
@@
-371,8
+371,7
@@
break;
case 'text':
break;
case 'text':
- widget = new OO.ui.TextInputWidget( {
- multiline: true,
+ widget = new OO.ui.MultilineTextInputWidget( {
required: Util.apiBool( pi.required )
} );
widget.paramInfo = pi;
required: Util.apiBool( pi.required )
} );
widget.paramInfo = pi;
@@
-489,7
+488,7
@@
throw new Error( 'Unknown parameter type ' + pi.type );
}
throw new Error( 'Unknown parameter type ' + pi.type );
}
- items =
$.map( pi.type,
function ( v ) {
+ items =
pi.type.map(
function ( v ) {
var config = {
data: String( v ),
label: String( v ),
var config = {
data: String( v ),
label: String( v ),
@@
-684,10
+683,9
@@
new OO.ui.MenuOptionWidget( {
label: Util.parseMsg( 'apisandbox-request-format-json-label' ),
data: new OO.ui.FieldLayout(
new OO.ui.MenuOptionWidget( {
label: Util.parseMsg( 'apisandbox-request-format-json-label' ),
data: new OO.ui.FieldLayout(
- jsonInput = new OO.ui.TextInputWidget( {
+ jsonInput = new OO.ui.
Multiline
TextInputWidget( {
classes: [ 'mw-apisandbox-textInputCode' ],
readOnly: true,
classes: [ 'mw-apisandbox-textInputCode' ],
readOnly: true,
- multiline: true,
autosize: true,
maxRows: 6,
value: JSON.stringify( displayParams, null, '\t' )
autosize: true,
maxRows: 6,
value: JSON.stringify( displayParams, null, '\t' )
@@
-1074,7
+1072,7
@@
selectedLabel = selectedLabel.text();
}
menu.clearItems().addItems( formatItems );
selectedLabel = selectedLabel.text();
}
menu.clearItems().addItems( formatItems );
- menu.chooseItem( menu.getItemFromLabel( selectedLabel ) || menu.
get
FirstSelectableItem() );
+ menu.chooseItem( menu.getItemFromLabel( selectedLabel ) || menu.
find
FirstSelectableItem() );
// Fire the event to update field visibilities
Util.onFormatDropdownChange();
// Fire the event to update field visibilities
Util.onFormatDropdownChange();