X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/6acdad62e7a4e11c8929e7ab00ce1bac511ed883..98a59d3e5f8bcb062e1a442f4cb1fbb5d0cca793:/js/kivi.js 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