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."));
id: "filterEditDlg",
title: __("Create Filter"),
style: "width: 600px",
+ test: function() {
+ if (this.validate()) {
+
+ if (dijit.byId("filterTestDlg"))
+ dijit.byId("filterTestDlg").destroyRecursive();
+
+ tdialog = new dijit.Dialog({
+ id: "filterTestDlg",
+ title: __("Filter Test Results"),
+ style: "width: 600px",
+ href: "backend.php?savemode=test&" +
+ dojo.objectToQuery(dialog.attr('value')),
+ });
+
+ tdialog.show();
+
+ }
+ },
execute: function() {
if (this.validate()) {
}
}
+function showFeedsWithErrors() {
+ try {
+ var query = "backend.php?op=dlg&id=feedsWithErrors";
+
+ if (dijit.byId("errorFeedsDlg"))
+ dijit.byId("errorFeedsDlg").destroyRecursive();
+
+ dialog = new dijit.Dialog({
+ id: "errorFeedsDlg",
+ title: __("Feeds with update errors"),
+ style: "width: 600px",
+ getSelectedFeeds: function() {
+ return getSelectedTableRowIds("prefErrorFeedList");
+ },
+ removeSelected: function() {
+ var sel_rows = this.getSelectedFeeds();
+
+ console.log(sel_rows);
+
+ if (sel_rows.length > 0) {
+ var ok = confirm(__("Remove selected feeds?"));
+
+ if (ok) {
+ notify_progress("Removing selected feeds...", true);
+
+ var query = "?op=pref-feeds&subop=remove&ids="+
+ param_escape(sel_rows.toString());
+
+ new Ajax.Request("backend.php", {
+ parameters: query,
+ onComplete: function(transport) {
+ notify('');
+ dialog.hide();
+ updateFeedList();
+ } });
+ }
+
+ } else {
+ alert(__("No feeds are selected."));
+ }
+ },
+ execute: function() {
+ if (this.validate()) {
+ }
+ },
+ href: query});
+
+ dialog.show();
+
+ } catch (e) {
+ exception_error("showFeedsWithErrors", e);
+ }
+
+}
+