From: Moritz Bunkus Date: Mon, 4 Apr 2016 15:11:41 +0000 (+0200) Subject: JS: fehlende Klammern bei Konstruktor-Aufruf gefixt (von jshint) X-Git-Tag: release-3.4.1~254 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=8eeb7c70fe0e5217c2b8516039e4f4deeee97470;p=kivitendo-erp.git JS: fehlende Klammern bei Konstruktor-Aufruf gefixt (von jshint) --- diff --git a/js/kivi.js b/js/kivi.js index 58a631a78..058c8c567 100644 --- a/js/kivi.js +++ b/js/kivi.js @@ -31,7 +31,7 @@ namespace("kivi", function(ns) { ns.parse_date = function(date) { var parts = date.replace(/\s+/g, "").split(ns._date_format.sep); date = new Date( - ((parts[ ns._date_format.y ] || 0) * 1) || (new Date).getFullYear(), + ((parts[ ns._date_format.y ] || 0) * 1) || (new Date()).getFullYear(), (parts[ ns._date_format.m ] || 0) * 1 - 1, // Months are 0-based. (parts[ ns._date_format.d ] || 0) * 1 );