[Time Conductor] Added mode class to time conductor

This commit is contained in:
Henry 2016-07-11 10:26:34 -07:00
parent 4e7b69c4df
commit 5cc81ba12a
2 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,7 @@
</style> </style>
<!-- Parent holder for time conductor. follow-mode | fixed-mode --> <!-- Parent holder for time conductor. follow-mode | fixed-mode -->
<div ng-controller="TimeConductorController as tcController" <div ng-controller="TimeConductorController as tcController"
class="l-flex-col" ng-class="{'follow-mode': followMode}"> class="l-flex-col {{modeModel.selected}}-mode">
<!-- Holds date selectors and ticks --> <!-- Holds date selectors and ticks -->
<div class="l-conductor-dates"> <div class="l-conductor-dates">
<form class="l-time-range-inputs-holder l-flex-row flex-elem" <form class="l-time-range-inputs-holder l-flex-row flex-elem"

View File

@ -89,6 +89,8 @@ define(
var now = Math.ceil(Date.now() / 1000) * 1000; var now = Math.ceil(Date.now() / 1000) * 1000;
//Set the time conductor to some default //Set the time conductor to some default
this.conductor.bounds({start: now - SIX_HOURS, end: now}); this.conductor.bounds({start: now - SIX_HOURS, end: now});
this.$scope.modeModel.selected = 'fixed';
this.conductor.follow(false);
}; };
TimeConductorController.prototype.validateStart = function (start) { TimeConductorController.prototype.validateStart = function (start) {