projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc53682
)
JS: fehlende Klammern bei Konstruktor-Aufruf gefixt (von jshint)
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 4 Apr 2016 15:11:41 +0000
(17:11 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 4 Apr 2016 15:11:41 +0000
(17:11 +0200)
js/kivi.js
patch
|
blob
|
history
diff --git
a/js/kivi.js
b/js/kivi.js
index
58a631a
..
058c8c5
100644
(file)
--- 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
);