From 3efc5e4038a10501a627ff55f505f6ef58786b5a Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 19 Dec 2014 10:58:33 +0100 Subject: [PATCH] Simplify, coding style (Bug #13757). --- kronolith/js/kronolith.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 33f2c03dbcf..a98e3269c9e 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -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 { @@ -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)); }, /**