summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-12-28 20:17:26 +0100
committerAndrew Dolgov <[email protected]>2005-12-28 20:17:26 +0100
commit1da7e457d84e97a7b961f115289481febace0cc5 (patch)
treef4efeacc0bc3a237df94e90b54b3434820032eb4 /prefs.js
parentde99f5005d48a668392ff4bda877854134e0d2f1 (diff)
some initial feed-linking work
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js17
1 files changed, 4 insertions, 13 deletions
diff --git a/prefs.js b/prefs.js
index 89ad81d38..82d897c97 100644
--- a/prefs.js
+++ b/prefs.js
@@ -677,18 +677,9 @@ function feedEditSave() {
var fcat = document.getElementById("iedit_fcat");
var fcat_id = fcat[fcat.selectedIndex].id;
-
- // notify("Saving feed.");
-
- /* if (upd_intl < 0) {
- notify("Update interval must be &gt;= 0 (0 = default)");
- return;
- }
-
- if (purge_intl < 0) {
- notify("Purge days must be &gt;= 0 (0 = default)");
- return;
- } */
+
+ var pfeed = document.getElementById("iedit_parent_feed");
+ var parent_feed_id = pfeed[pfeed.selectedIndex].id;
if (link.length == 0) {
notify("Feed link cannot be blank.");
@@ -711,7 +702,7 @@ function feedEditSave() {
feed + "&l=" + param_escape(link) + "&t=" + param_escape(title) +
"&ui=" + param_escape(upd_intl) + "&pi=" + param_escape(purge_intl) +
"&catid=" + param_escape(fcat_id) + "&login=" + param_escape(auth_login) +
- "&pass=" + param_escape(auth_pass);
+ "&pfeed=" + param_escape(parent_feed_id) + "&pass=" + param_escape(auth_pass);
xmlhttp.open("POST", "backend.php", true);
xmlhttp.onreadystatechange=feedlist_callback;