Signed-off-by: Jerome Jutteau <mojo@couak.net>
document.getElementById('send').style.display = '';
}
document.getElementById('send').style.display = '';
}
-function add_time_string_to_date(d, time_string)
+function add_time_string_to_date(d, time)
{
if(typeof(d) != 'object' || !(d instanceof Date))
{
{
if(typeof(d) != 'object' || !(d instanceof Date))
{
if (time != 'none')
{
var d = new Date();
if (time != 'none')
{
var d = new Date();
- if(!add_time_string_to_date(d))
- {
+ if(!add_time_string_to_date(d, time))
show_link (url, res[0], res[1], res[2], d.toString());
}
else
show_link (url, res[0], res[1], res[2], d.toString());
}
else
if (async_global_time != 'none')
{
var d = new Date();
if (async_global_time != 'none')
{
var d = new Date();
- if(!add_time_string_to_date(d))
+ if(!add_time_string_to_date(d, async_global_time))
return;
show_link (async_global_url, res[0], res[1], res[2], d.toString());
}
return;
show_link (async_global_url, res[0], res[1], res[2], d.toString());
}