X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/e50e02ff0e77b25298ef4835052bc2942d92e9a4..d05d58ec8fd2f473e154bb3daf182117007f10a0:/lib/functions.js.php diff --git a/lib/functions.js.php b/lib/functions.js.php index 24be13f..7a1c5af 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -18,6 +18,8 @@ * along with this program. If not, see . */ +header('Content-Type: text/javascript'); + define ('JIRAFEAU_ROOT', dirname (__FILE__) . '/../'); require (JIRAFEAU_ROOT . 'lib/config.original.php'); require (JIRAFEAU_ROOT . 'lib/settings.php'); @@ -204,7 +206,7 @@ function add_time_string_to_date(d, time) { return false; } - + if (time == 'minute') { d.setSeconds (d.getSeconds() + 60); @@ -230,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);