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:
16
functions.js
16
functions.js
@@ -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."));
|
||||
|
||||
} });
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user