Skip to content

Commit

Permalink
Simplify, coding style (Bug #13757).
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Dec 19, 2014
1 parent bd8ef95 commit 3efc5e4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions kronolith/js/kronolith.js
Expand Up @@ -6298,9 +6298,9 @@ KronolithCore = {
}
},

getFBDate: function () {
var startDate = $('kronolithFBDate').innerHTML;
startDate = startDate.split(' ');
getFBDate: function ()
{
var startDate = $('kronolithFBDate').innerHTML.split(' ');
if (startDate.length > 1) {
startDate = startDate[1];
} else {
Expand Down Expand Up @@ -6418,14 +6418,12 @@ KronolithCore = {

nextFreebusy: function()
{
var fbdate = this.getFBDate();
this.fbStartDateHandler(fbdate.addDays(1));
this.fbStartDateHandler(this.getFBDate().addDays(1));
},

prevFreebusy: function()
{
var fbdate = this.getFBDate();
this.fbStartDateHandler(fbdate.addDays(-1));
this.fbStartDateHandler(this.getFBDate().addDays(-1));
},

/**
Expand Down

0 comments on commit 3efc5e4

Please sign in to comment.