var reply = JSON.parse(transport.responseText);
if (reply['result'] == true) {
- alert(__("Date syntax appears to be correct."));
+ alert(__("Date syntax appears to be correct:") + " " + reply['date']);
return;
} else {
alert(__("Date syntax is incorrect."));
$date = db_escape_string($_REQUEST["date"]);
$date_parsed = strtotime($date);
- print json_encode(array("result" => (bool)$date_parsed));
+ print json_encode(array("result" => (bool)$date_parsed,
+ "date" => date("c", $date_parsed)));
return;
}
name=\"reg_exp\" value=\"$reg_exp\"/>";
print "<span id=\"filterDlg_dateChkBox\" style=\"display : none\">";
- print " <button onclick=\"return filterDlgCheckDate()\">".
+ print " <button dojoType=\"dijit.form.Button\"
+ onclick=\"return filterDlgCheckDate()\">".
__('Check it')."</button>";
print "</span>";