X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fkivi.js;h=058c8c5677b8af03d7ab91cd5d50ecc53151e0c8;hb=db11732b27f9d7bd86fb6bf1cd4150e59a54559f;hp=0a84e8834f17d3df3462e314b57aff3b199cbd4e;hpb=6acdad62e7a4e11c8929e7ab00ce1bac511ed883;p=kivitendo-erp.git diff --git a/js/kivi.js b/js/kivi.js index 0a84e8834..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 ); @@ -111,20 +111,21 @@ namespace("kivi", function(ns) { }; ns.t8 = function(text, params) { - var text = ns._locale[text] || text; + text = ns._locale[text] || text; + var key, value if( Object.prototype.toString.call( params ) === '[object Array]' ) { var len = params.length; for(var i=0; i