diff options
author | Andrew Dolgov <[email protected]> | 2005-11-16 10:37:50 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-11-16 10:37:50 +0100 |
commit | 5d73494a182fb58518e6e64f7877c3fe7d71eaf8 (patch) | |
tree | 8a72b2a6ce83daaffc6189a2bfe490d173509e3c /prefs.js | |
parent | 430bf183c5d633b29065333c0f878c6cf67d4547 (diff) |
per-feed purge intervals
Diffstat (limited to 'prefs.js')
-rw-r--r-- | prefs.js | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 >= 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); |