Commit c1d7c7fb authored by jonnybradley's avatar jonnybradley

[FIX] Don't refresh if autorefresh == 0

parent a8d0b406
......@@ -282,9 +282,11 @@ function submit_form(msgname,flg)
document.mailb.elements.quickFlagMsg.value= msgname;
document.mailb.submit();
}
webmailTimeoutId = window.setTimeout('window.location.reload(true);',$autoRefresh*1000);
END;
if ($autorefresh > 0) {
$js .= 'webmailTimeoutId = window.setTimeout("window.location.reload(true);",$autoRefresh*1000);';
}
$headerlib->add_js($js,0);
$h = opendir('temp/mail_attachs/');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment