Skip to content

Commit

Permalink
Added missing semicolons.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpfry committed Mar 2, 2014
1 parent b283542 commit 048cee4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions auction.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ if (Meteor.isClient) {
Session.set('auctionSecondsRemaining', pad(timeLeft.seconds(), 2));
}
}
}
};

function pad(num, size) {
var s = num + "";
while (s.length < size) s = "0" + s;
return s;
}
};

var cycleBigScreenItems = function () {
if (Items.find()) {
Expand All @@ -155,25 +155,25 @@ if (Meteor.isClient) {
Session.set('bigScreenPage', 0);
}
}
}
};

var syncServerTime = function () {
Meteor.call('getServerTime', function (error, result) {
Session.set('clientTimeOffset', moment().diff(result));
});
}
};

var setDevice = function () {
Session.set('isBeingViewedOnMobile', $(window).width() < 768);
}
};

var truncateString = function (string, maxLength) {
if (string.length > maxLength) {
return string.substring(0,maxLength) + "...";
}

return string;
}
};

Meteor.setInterval(calculateAuctionTimeRemaining, 1000);
Meteor.setInterval(cycleBigScreenItems, 20000);
Expand Down Expand Up @@ -293,7 +293,7 @@ if (Meteor.isClient) {
ok: function (value) {
Session.set('bidderName', value);
}
}));
}));

Template.item.events({
'click #submitBid' : function (event, template) {
Expand Down Expand Up @@ -383,7 +383,7 @@ if (Meteor.isClient) {
newAuctionEndDate);
}
}
})
});

Template.admin.events(okCancelEvents(
"#inputAdminPassword",
Expand All @@ -406,7 +406,7 @@ if (Meteor.isClient) {
'click #logOut' : function () {
Meteor.logout();
}
})
});

Template.logRow.events({
'click #deleteBid' : function (event, template) {
Expand Down

0 comments on commit 048cee4

Please sign in to comment.