X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/26d3657f83ba96b080c9cb0a242ee8b2d8fc1fe1..af7e43a4a3bbcb62912eabd75537480bf696b265:/lib/functions.js.php diff --git a/lib/functions.js.php b/lib/functions.js.php index e8a6bb1..31cefe3 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -21,7 +21,7 @@ header('Content-Type: text/javascript'); define ('JIRAFEAU_ROOT', dirname (__FILE__) . '/../'); -require (JIRAFEAU_ROOT . 'lib/config.original.php'); + require (JIRAFEAU_ROOT . 'lib/settings.php'); require (JIRAFEAU_ROOT . 'lib/functions.php'); require (JIRAFEAU_ROOT . 'lib/lang.php'); @@ -206,7 +206,7 @@ function add_time_string_to_date(d, time) { return false; } - + if (time == 'minute') { d.setSeconds (d.getSeconds() + 60); @@ -232,6 +232,11 @@ function add_time_string_to_date(d, time) d.setSeconds (d.getSeconds() + 2419200); return true; } + if (time == 'quarter') + { + d.setSeconds (d.getSeconds() + 7257600); + return true; + } if (time == 'year') { d.setSeconds (d.getSeconds() + 29030400);