diff --git a/backend.php b/backend.php index 83d86458f..c3805fc03 100644 --- a/backend.php +++ b/backend.php @@ -433,7 +433,7 @@ $subop = $_GET["subop"]; - if ($subop == "edit") { +/* if ($subop == "old_edit") { $feed_id = $_GET["id"]; @@ -460,7 +460,7 @@ Add feed "; - } + } */ if ($subop == "editSave") { $feed_title = pg_escape_string($_GET["t"]); @@ -517,7 +517,8 @@ print "
| Select | Title | Link | Last Updated | Select | Title | +Link | Last Updated | "; $lnum = 0; @@ -526,7 +527,9 @@ $class = ($lnum % 2) ? "even" : "odd"; $feed_id = $line["id"]; - + + $edit_feed_id = $_GET["id"]; + print "||
| $feed_icon | "; - print ""; - - print " | " . - $line["title"] . " | "; - print "" . - $line["feed_url"] . " | "; + + print "" . + $line["title"] . " | "; + print "" . + $line["feed_url"] . " | "; + } else { + + print ""; + + print " | "; + print " | "; + + } print " | " . $line["last_updated"] . " | "; + print "
"; + + if ($subop == "edit") { + print "Edit feed: + Cancel + Save"; + } else { + +// Edit + +// Refresh"; + + print " + Selection: + Remove + Mark as read + Mark as unread"; + + } + } pg_close($link); diff --git a/prefs.js b/prefs.js index 92bbd67d8..b468a362a 100644 --- a/prefs.js +++ b/prefs.js @@ -236,17 +236,19 @@ function feedEditCancel() { } -function feedEditSave(feed) { +function feedEditSave() { + + var feed = active_feed; if (!xmlhttp_ready(xmlhttp)) { printLockingError(); return } - notify("Saving feed."); + var link = document.getElementById("iedit_link").value; + var title = document.getElementById("iedit_title").value; - var link = document.getElementById("fedit_link").value; - var title = document.getElementById("fedit_title").value; +// notify("Saving feed."); if (link.length == 0) { notify("Feed link cannot be blank."); @@ -258,6 +260,8 @@ function feedEditSave(feed) { return; } + active_feed = false; + xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=editSave&id=" + feed + "&l=" + param_escape(link) + "&t=" + param_escape(title) ,true); xmlhttp.onreadystatechange=feedlist_callback; diff --git a/prefs.php b/prefs.php index edbb728c3..8e63f99be 100644 --- a/prefs.php +++ b/prefs.php @@ -30,18 +30,17 @@
Selection: +