Skip to content

Commit

Permalink
Fixes #6 Show deadline time in 12h if config is set to 12h
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-koch committed May 7, 2015
1 parent 6bac35c commit 052d0d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Funbit.Ets.Telemetry.Dashboard.prototype.filter = function (data) {
data.wearTrailerRounded = Math.floor(data.wearTrailer * 100);

data.gameTime12h = getTimeInTwelveHourFormat(data.gameTime);
data.jobDeadlineTime12h = getTimeInTwelveHourFormat(data.jobDeadlineTime);
data.trailerMassTons = data.hasJob ? ((data.trailerMass / 1000.0) + ' t') : '';
data.trailerMassKg = data.hasJob ? data.trailerMass + ' kg' : '';
data.jobIncome = getJobIncome(data.jobIncome);
Expand Down Expand Up @@ -79,6 +80,7 @@ Funbit.Ets.Telemetry.Dashboard.prototype.initialize = function (skinConfig) {
var timeFormat = skinConfig.timeFormat;
if (timeFormat === '12h') {
$('.gameTime').addClass('gameTime12h').removeClass('gameTime');
$('.jobDeadlineTime').addClass('jobDeadlineTime12h').removeClass('jobDeadlineTime');
}

// Process currency code
Expand Down

0 comments on commit 052d0d8

Please sign in to comment.