jenkins-bot has submitted this change and it was merged.
Change subject: Whitespace fixes
......................................................................
Whitespace fixes
Change-Id: I5b093a1dfb0f409a1319ef9488a44d6bae3b686d
---
M modules/ve.ui.CiteFromIDDialog.js
M modules/ve.ui.CiteFromIDDialogTool.js
2 files changed, 7 insertions(+), 7 deletions(-)
Approvals:
Mvolz: Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/ve.ui.CiteFromIDDialog.js
b/modules/ve.ui.CiteFromIDDialog.js
index 0360928..b3f42fc 100644
--- a/modules/ve.ui.CiteFromIDDialog.js
+++ b/modules/ve.ui.CiteFromIDDialog.js
@@ -117,7 +117,7 @@
// if TemplateName is undefined, this means that items
of this citoid
// type does not have a Template defined within the
message.
if ( !templateName ) {
- mw.notify( mw.msg(
'citoid-typeMap-config-error') );
+ mw.notify( mw.msg(
'citoid-typeMap-config-error' ) );
dialog.popPending();
return;
}
@@ -169,15 +169,15 @@
// Case: Citoid parameter equivalent to 1 or 2D
Array of TD parameters
for ( i = 0; i < citation[citoidField].length;
i++ ) {
// Iterate through first dimension of
array
- if ( typeof citation[citoidField][i]
=== 'string' && templateField[i] !== undefined) {
+ if ( typeof citation[citoidField][i]
=== 'string' && templateField[i] !== undefined ) {
// Case: Citoid parameter
equivalent to 1D Array of TD parameters
template.addParameter( new
ve.dm.MWParameterModel( template, templateField[i], citation[citoidField][i] )
);
} else if ( Array.isArray(
citation[citoidField][i] ) ) {
// Case: Citoid parameter
equivalent to 2D Array of TD parameters
for ( j = 0; j <
citation[citoidField][i].length; j++ ) {
// Iterate through 2nd
dimension of Array
- if (typeof
citation[citoidField][i][j] === 'string' && templateField[i][j] !== undefined) {
-
template.addParameter( new ve.dm.MWParameterModel( template,
templateField[i][j], citation[citoidField][i][j]) );
+ if ( typeof
citation[citoidField][i][j] === 'string' && templateField[i][j] !== undefined )
{
+
template.addParameter( new ve.dm.MWParameterModel( template,
templateField[i][j], citation[citoidField][i][j] ) );
}
}
}
@@ -217,7 +217,7 @@
// choosing to insert that
citation here but to notify the user.
if ( response.status === 520 ) {
dialog.insertTemplate(
response.responseJSON );
- mw.notify( mw.message
('citoid-520-error') );
+ mw.notify( mw.message(
'citoid-520-error' ) );
} else {
mw.notify( 'Status: '
+ textStatus + 'Error: ' + errorThrown );
}
@@ -267,7 +267,7 @@
return
ve.ui.CiteFromIDDialog.super.prototype.getTeardownProcess.call( this, data )
.first( function () {
// Clear search input box
- this.searchInput.setValue('');
+ this.searchInput.setValue( '' );
}, this );
};
diff --git a/modules/ve.ui.CiteFromIDDialogTool.js
b/modules/ve.ui.CiteFromIDDialogTool.js
index 721eb9c..9209fe0 100644
--- a/modules/ve.ui.CiteFromIDDialogTool.js
+++ b/modules/ve.ui.CiteFromIDDialogTool.js
@@ -39,4 +39,4 @@
ve.ui.toolFactory.register( ve.ui.CiteFromIDDialogTool );
-});
+} );
--
To view, visit https://gerrit.wikimedia.org/r/189523
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I5b093a1dfb0f409a1319ef9488a44d6bae3b686d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Citoid
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
Gerrit-Reviewer: Mvolz <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits