Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 414474c

Browse files
committed
Fix indentation issue
1 parent 5415f67 commit 414474c

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

app/directives/distribution-graph/distribution-graph.directive.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,13 @@ import Tooltip from 'appirio-tech-react-components/components/Tooltip/Tooltip.js
266266
!isInArray(d3.event.target.classList[0], ['tooltip-content-container', 'tooltip-container', 'tooltip-body', 'Tooltip']) &&
267267
(d3.event.target.tagName.toLowerCase()!='circle') && !(d3.event.target.tagName.toLowerCase()=='rect' && d3.event.target.classList[0] == 'hover')) {
268268
$('#chart-tooltip .tooltip-target').trigger('click')
269-
$('#chart-tooltip').removeClass('distribution')
269+
$('#chart-tooltip').removeClass('distribution')
270270
}
271271
})
272-
273-
function isInArray(value, array) {
274-
return array.indexOf(value) > -1;
275-
}
272+
273+
function isInArray(value, array) {
274+
return array.indexOf(value) > -1;
275+
}
276276

277277
svg.selectAll('line.xaxis')
278278
.data(ranges)

app/directives/history-graph/history-graph.directive.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,11 @@ import Tooltip from 'appirio-tech-react-components/components/Tooltip/Tooltip.js
275275
$scope.historyRating = d.newRating
276276
$scope.historyDate = moment(d.ratingDate).format('YYYY-MM-DD')
277277
$scope.historyChallenge = d.challengeName
278-
$('#chart-tooltip .tooltip-container').on('click', function(){
279-
if($state.params && ($state.params.subTrack === 'SRM' || $state.params.subTrack === 'MARATHON_MATCH'))
278+
$('#chart-tooltip .tooltip-container').on('click', function(){
279+
if($state.params && ($state.params.subTrack === 'SRM' || $state.params.subTrack === 'MARATHON_MATCH'))
280280
location.href = $filter('challengeLinks')({'rounds': [{id: d.challengeId, forumId: null}], 'track': $state.params.track, 'subTrack': $state.params.subTrack}, 'detail')
281-
else
282-
location.href = $filter('challengeLinks')({id: d.challengeId, 'track': $state.params.track, 'subTrack': $state.params.subTrack}, 'detail')
281+
else
282+
location.href = $filter('challengeLinks')({id: d.challengeId, 'track': $state.params.track, 'subTrack': $state.params.subTrack}, 'detail')
283283
})
284284
d3.select('#chart-tooltip')
285285
.style('left', (d3.event.pageX-5) + 'px')
@@ -295,7 +295,7 @@ import Tooltip from 'appirio-tech-react-components/components/Tooltip/Tooltip.js
295295
d3.select('#chart-tooltip .challenge-date').text(moment(d.ratingDate).format('MMM DD, YYYY'))
296296
d3.select('#chart-tooltip .tooltip-rating').text($scope.historyRating)
297297
d3.select('#chart-tooltip .tooltip-rating').style('background', ratingToColor($scope.colors, $scope.historyRating))
298-
$('#chart-tooltip').removeClass('distribution')
298+
$('#chart-tooltip').removeClass('distribution')
299299
$scope.$digest()
300300
})
301301
.on('mouseout', function(d) {
@@ -307,8 +307,8 @@ import Tooltip from 'appirio-tech-react-components/components/Tooltip/Tooltip.js
307307
if((d3.event.target.classList[0] != 'tooltip-target') && !$('#chart-tooltip .tooltip-container').hasClass('tooltip-hide') &&
308308
(d3.event.target.tagName.toLowerCase()!='circle') && !(d3.event.target.tagName.toLowerCase()=='rect' && d3.event.target.classList[0] == 'hover')) {
309309
$('#chart-tooltip .tooltip-target').trigger('click')
310-
$('#chart-tooltip .tooltip-container').off('click')
311-
}
310+
$('#chart-tooltip .tooltip-container').off('click')
311+
}
312312
})
313313

314314
}
@@ -319,9 +319,9 @@ import Tooltip from 'appirio-tech-react-components/components/Tooltip/Tooltip.js
319319
})
320320
return colors[0] && colors[0].color || 'black'
321321
}
322-
323-
function isInArray(value, array) {
324-
return array.indexOf(value) > -1;
325-
}
322+
323+
function isInArray(value, array) {
324+
return array.indexOf(value) > -1;
325+
}
326326
}
327327
})()

app/filters/challengeLinks.filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import angular from 'angular'
99
function challengeLinks(CONSTANTS) {
1010
return function(challenge, type) {
1111
var data
12-
if (challenge.subTrack === 'MARATHON_MATCH') {
12+
if (challenge.subTrack === 'MARATHON_MATCH') {
1313
data = {
1414
domain: CONSTANTS.domain,
1515
roundId: challenge.rounds[0].id,

0 commit comments

Comments
 (0)