Skip to content

Commit

Permalink
Merge branch 'master' into ghatighorias/restricts_user_list_clickable…
Browse files Browse the repository at this point in the history
…_only_to_coordinators
  • Loading branch information
ggpasqualino authored Sep 14, 2017
2 parents 0f438c6 + df6610c commit 5aad834
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/js/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
}

function renderHour ( hour ) {
return `0${hour}:00`.slice( -5 );
return `${hour}`.slice(0, 5);
}

function updatePointer ( ) {
Expand Down Expand Up @@ -254,7 +254,7 @@
</div>
<div class="calendar__class-time">
${ cl.classroom ? cl.classroom + "," : "" }
${ renderHour( cl.starting_at.slice(0,2) ) }-${ renderHour( cl.finishes_at.slice(0,2) ) }
${ renderHour( cl.starting_at ) }-${ renderHour( cl.finishes_at ) }
</div>
</div>
<div
Expand All @@ -267,7 +267,7 @@
${ cl.course_name }<br />
${ cl.teachers.map( ( teacher ) => renderName( teacher ) ).join( ", " ) }<br />
${ cl.classroom ? cl.classroom + "," : "" }
${ renderHour( cl.starting_at.slice(0,2) ) }-${ renderHour( cl.finishes_at.slice(0,2) ) }
${ renderHour( cl.starting_at ) }-${ renderHour( cl.finishes_at ) }
</div>
`
).join( "" )
Expand Down

0 comments on commit 5aad834

Please sign in to comment.