1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 21:55:56 +00:00

rpc/checkDate: use JSON; mark some XML methods

This commit is contained in:
Andrew Dolgov
2010-11-29 16:09:28 +03:00
parent e9175d13d7
commit da661d71db
2 changed files with 18 additions and 33 deletions

View File

@@ -607,19 +607,15 @@ function filterDlgCheckDate() {
parameters: query,
onComplete: function(transport) {
if (transport.responseXML) {
var result = transport.responseXML.getElementsByTagName("result")[0];
var reply = JSON.parse(transport.responseText);
if (result && result.firstChild) {
if (result.firstChild.nodeValue == "1") {
alert(__("Date syntax appears to be correct."));
return;
}
}
if (reply['result'] == true) {
alert(__("Date syntax appears to be correct."));
return;
} else {
alert(__("Date syntax is incorrect."));
}
alert(__("Date syntax is incorrect."));
} });