summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-16 10:37:50 +0100
committerAndrew Dolgov <[email protected]>2005-11-16 10:37:50 +0100
commit5d73494a182fb58518e6e64f7877c3fe7d71eaf8 (patch)
tree8a72b2a6ce83daaffc6189a2bfe490d173509e3c /prefs.js
parent430bf183c5d633b29065333c0f878c6cf67d4547 (diff)
per-feed purge intervals
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/prefs.js b/prefs.js
index 0f545b7f8..5c6f7a7f6 100644
--- a/prefs.js
+++ b/prefs.js
@@ -462,6 +462,7 @@ function feedEditSave() {
var link = document.getElementById("iedit_link").value;
var title = document.getElementById("iedit_title").value;
var upd_intl = document.getElementById("iedit_updintl").value;
+ var purge_intl = document.getElementById("iedit_purgintl").value;
// notify("Saving feed.");
@@ -470,6 +471,10 @@ function feedEditSave() {
return;
}
+ if (purge_intl < 0) {
+ notify("Purge days must be &gt;= 0 (0 = default)");
+ return;
+ }
if (link.length == 0) {
notify("Feed link cannot be blank.");
@@ -485,7 +490,7 @@ function feedEditSave() {
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=editSave&id=" +
feed + "&l=" + param_escape(link) + "&t=" + param_escape(title) +
- "&ui=" + param_escape(upd_intl), true);
+ "&ui=" + param_escape(upd_intl) + "&pi=" + param_escape(purge_intl), true);
xmlhttp.onreadystatechange=feedlist_callback;
xmlhttp.send(null);