X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fkivi.js;h=058c8c5677b8af03d7ab91cd5d50ecc53151e0c8;hb=b313d66b8d828242707744a1006c629cb460aea0;hp=2f6f232b649f70abf28e9f529355346653ed2469;hpb=c0713b66e59e458d4966b8954ec1c835e2bc0c5b;p=kivitendo-erp.git diff --git a/js/kivi.js b/js/kivi.js index 2f6f232b6..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