summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-05-18 03:48:33 +0100
committerAndrew Dolgov <[email protected]>2006-05-18 03:48:33 +0100
commit7b5c6012d12c35f900dc8f20fdc103cc14959f3a (patch)
treeea12e90acb8c81451e1737fd17acaac08c6cb65a /tt-rss.js
parent84025daba804347a86ee2cf6996620779d08fd3d (diff)
unify create filter interface
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js74
1 files changed, 0 insertions, 74 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 81c1c40fe..31ad8a962 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -58,23 +58,6 @@ function dlg_frefresh_callback() {
}
}
-function dlg_submit_callback() {
- if (xmlhttp.readyState == 4) {
- notify(xmlhttp.responseText);
- closeDlg();
- }
-}
-
-function dlg_display_callback() {
- if (xmlhttp.readyState == 4) {
- var dlg = document.getElementById("userDlg");
- var dlg_s = document.getElementById("userDlgShadow");
-
- dlg.innerHTML = xmlhttp.responseText;
- dlg_s.style.display = "block";
- }
-}
-
function hide_unread_callback() {
if (xmlhttp.readyState == 4) {
@@ -578,63 +561,6 @@ function qafAdd() {
}
}
-function qaddFilter() {
-
- if (!xmlhttp_ready(xmlhttp)) {
- printLockingError();
- return
- }
-
- var regexp = document.getElementById("fadd_regexp");
- var match = document.getElementById("fadd_match");
- var feed = document.getElementById("fadd_feed");
- var action = document.getElementById("fadd_action");
-
- if (regexp.value.length == 0) {
- notify("Missing filter expression.");
- } else {
- notify("Adding filter...");
-
- var v_match = match[match.selectedIndex].text;
- var feed_id = feed[feed.selectedIndex].id;
- var action_id = action[action.selectedIndex].id;
-
- xmlhttp.open("GET", "backend.php?op=pref-filters&quiet=1&subop=add&regexp=" +
- param_escape(regexp.value) + "&match=" + v_match +
- "&fid=" + param_escape(feed_id) + "&aid=" + param_escape(action_id), true);
-
- xmlhttp.onreadystatechange=dlg_submit_callback;
- xmlhttp.send(null);
-
- regexp.value = "";
- }
-
-}
-
-
-function displayDlg(id, param) {
-
- if (!xmlhttp_ready(xmlhttp)) {
- printLockingError();
- return
- }
-
- notify("");
-
- xmlhttp.open("GET", "backend.php?op=dlg&id=" +
- param_escape(id) + "&param=" + param_escape(param), true);
- xmlhttp.onreadystatechange=dlg_display_callback;
- xmlhttp.send(null);
-
- disableHotkeys();
-}
-
-function closeDlg() {
- var dlg = document.getElementById("userDlgShadow");
- dlg.style.display = "none";
- enableHotkeys();
-}
-
function qfdDelete(feed_id) {
notify("Removing feed...");