Santhosh has uploaded a new change for review.
https://gerrit.wikimedia.org/r/216611
Change subject: Fix JSCS errors
......................................................................
Fix JSCS errors
Change-Id: I90a0447331df082b4aaff05540ae2ead6678ecad
---
M modules/stats/ext.cx.stats.js
M modules/tools/ext.cx.tools.reference.js
M modules/widgets/callout/ext.cx.callout.js
3 files changed, 31 insertions(+), 31 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation
refs/changes/11/216611/1
diff --git a/modules/stats/ext.cx.stats.js b/modules/stats/ext.cx.stats.js
index 8a8ddcd..6ef6b2e 100644
--- a/modules/stats/ext.cx.stats.js
+++ b/modules/stats/ext.cx.stats.js
@@ -166,7 +166,7 @@
{
title: mw.msg(
'cx-stats-draft-target-source' ),
content: this.drawTranslationsChart(
'to', 'draft', 'count' )
- },
+ },
{
title: mw.msg(
'cx-stats-draft-source-target' ),
content: this.drawTranslationsChart(
'from', 'draft', 'count' )
@@ -386,7 +386,7 @@
data: $.map(
this.totalTranslationTrend, function ( data ) {
return data.count;
} )
- },
+ },
{
label: mw.message(
'cx-trend-translations-to',
@@ -397,8 +397,8 @@
data: $.map(
this.languageTranslatonTrend, function ( data ) {
return data.count;
} )
- }
- ]
+ }
+ ]
};
/*global Chart:false */
@@ -430,7 +430,6 @@
this.sourceTargetModel[ status ][ sourceLanguage
].push( record );
this.targetSourceModel[ status ][ targetLanguage
].push( record );
}
-
for ( status in this.sourceTargetModel ) {
tempModel = this.sourceTargetModel[ status ];
diff --git a/modules/tools/ext.cx.tools.reference.js
b/modules/tools/ext.cx.tools.reference.js
index f31b21f..6411f99 100644
--- a/modules/tools/ext.cx.tools.reference.js
+++ b/modules/tools/ext.cx.tools.reference.js
@@ -93,7 +93,7 @@
referenceId = $reference.prop( 'id' );
targetReferenceId = 'cx' + referenceId;
$reference.attr( {
- 'id': targetReferenceId,
+ id: targetReferenceId,
'data-sourceid': referenceId
} );
mw.cx.selection.pasteHTML( $reference[ 0 ].outerHTML );
diff --git a/modules/widgets/callout/ext.cx.callout.js
b/modules/widgets/callout/ext.cx.callout.js
index 757747c..9508dd0 100644
--- a/modules/widgets/callout/ext.cx.callout.js
+++ b/modules/widgets/callout/ext.cx.callout.js
@@ -293,38 +293,39 @@
$this = $( this );
leftFlips = {
- '1': '11',
- '2': '10',
- '3': '9',
- '4': '8',
- '5': '7'
+ 1: '11',
+ 2: '10',
+ 3: '9',
+ 4: '8',
+ 5: '7'
};
rightFlips = {
- '11': '1',
- '10': '2',
- '9': '3',
- '8': '4',
- '7': '5'
+ 11: '1',
+ 10: '2',
+ 9: '3',
+ 8: '4',
+ 7: '5'
};
topFlips = {
- '3': '2',
- '4': '2',
- '5': '1',
- '6': '0',
- '7': '11',
- '8': '10',
- '9': '10'
+ 3: '2',
+ 4: '2',
+ 5: '1',
+ 6: '0',
+ 7: '11',
+ 8: '10',
+ 9: '10'
};
bottomFlips = {
- '0': '6',
- '12': '6',
- '1': '5',
- '2': '4',
- '3': '4',
- '11': '7',
- '10': '8',
- '9': '8'
+ 0: '6',
+ 12: '6',
+ 1: '5',
+ 2: '4',
+ 3: '4',
+ 11: '7',
+ 10: '8',
+ 9: '8'
};
+
if ( $this.offset().top < boundTop ) {
direction = topFlips[ direction ] || direction;
}
--
To view, visit https://gerrit.wikimedia.org/r/216611
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I90a0447331df082b4aaff05540ae2ead6678ecad
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits