diff options
author | Andrew Dolgov <[email protected]> | 2005-12-28 20:17:26 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-12-28 20:17:26 +0100 |
commit | 1da7e457d84e97a7b961f115289481febace0cc5 (patch) | |
tree | f4efeacc0bc3a237df94e90b54b3434820032eb4 /prefs.js | |
parent | de99f5005d48a668392ff4bda877854134e0d2f1 (diff) |
some initial feed-linking work
Diffstat (limited to 'prefs.js')
-rw-r--r-- | prefs.js | 17 |
1 files changed, 4 insertions, 13 deletions
@@ -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 >= 0 (0 = default)"); - return; - } - - if (purge_intl < 0) { - notify("Purge days must be >= 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; |