Permalink
Browse files

Work page only shows time if there is a time.

  • Loading branch information...
1 parent 161a67a commit c55025648a705f1fba5c401888a8b9f69bcb0853 @matthewp committed Feb 17, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −1 js/atwork.js
  2. +2 −1 src/work_page.js
View
@@ -311,7 +311,8 @@ var WorkPage = {
this.complete = new Complete();
this.complete.listen();
- if(this.timer.time) {
+ var time = this.timer.time;
+ if(time && time.totalmilliseconds > 0) {
this.elem.textContent = this.timer.time.toString();
if(localStorage['running'] === 'true') {
View
@@ -62,7 +62,8 @@ var WorkPage = {
this.complete = new Complete();
this.complete.listen();
- if(this.timer.time) {
+ var time = this.timer.time;
+ if(time && time.totalmilliseconds > 0) {
this.elem.textContent = this.timer.time.toString();
if(localStorage['running'] === 'true') {

0 comments on commit c550256

Please sign in to comment.