This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree 1 file changed +3
-5
lines changed
app/my-dashboard/subtrack-stats 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 3
3
4
4
angular . module ( 'tc.myDashboard' ) . controller ( 'SubtrackStatsController' , SubtrackStatsController ) ;
5
5
6
- SubtrackStatsController . $inject = [ 'ProfileService' , 'userIdentity' , '$window' ] ;
6
+ SubtrackStatsController . $inject = [ 'ProfileService' , 'userIdentity' ] ;
7
7
8
- function SubtrackStatsController ( ProfileService , userIdentity , $window ) {
8
+ function SubtrackStatsController ( ProfileService , userIdentity ) {
9
9
var vm = this ;
10
10
vm . loading = true ;
11
11
46
46
47
47
} else {
48
48
return result ;
49
-
50
49
}
51
50
} , [ ] ) ;
52
51
}
66
65
} ) ;
67
66
}
68
67
68
+ // This function aids in showing multiple items (subtracks) per slide
69
69
function buildCarouselSlide ( numItemsPerSlide ) {
70
70
var subtrackRanksCollection = [ ] ;
71
71
var slide = [ ] ;
74
74
// http://stackoverflow.com/questions/26252038/multi-item-responsive-carousel
75
75
numItemsPerSlide = numItemsPerSlide || 4 ;
76
76
77
- console . log ( 'origin collection: ' , vm . subtrackRanks ) ;
78
77
for ( var i = 0 ; i < vm . subtrackRanks . length ; i ++ ) {
79
78
if ( slide . length === numItemsPerSlide ) {
80
79
// When slide is full, push it to collection and make a new slide []
85
84
}
86
85
subtrackRanksCollection . push ( slide ) ;
87
86
vm . subtrackRanksCollection = subtrackRanksCollection ;
88
- console . log ( vm . subtrackRanksCollection ) ;
89
87
}
90
88
}
91
89
} ) ( ) ;
You can’t perform that action at this time.
0 commit comments