diff --git a/backend.php b/backend.php index 267cc7dc9..d203af3fa 100644 --- a/backend.php +++ b/backend.php @@ -1982,6 +1982,8 @@ if (db_num_rows($result) != 0) { + print "
"; print ""; if ($subop == "editCat") { print "Edit category: + onclick=\"javascript:feedCatEditSave()\" value=\"Save\"> "; + onclick=\"javascript:feedCatEditCancel()\" value=\"Cancel\">"; } else { print " diff --git a/prefs.js b/prefs.js index ec65e8399..c98dbcc8d 100644 --- a/prefs.js +++ b/prefs.js @@ -719,11 +719,11 @@ function feedCatEditSave() { notify("Saving category..."); - var cat_title = document.getElementById("iedit_title").value; +// var cat_title = document.getElementById("iedit_title").value; - xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=saveCat&id=" + - param_escape(active_feed_cat) + "&title=" + param_escape(cat_title), - true); + var query = Form.serialize("feed_cat_edit_form"); + + xmlhttp.open("GET", "backend.php?" + query, true); xmlhttp.onreadystatechange=feedlist_callback; xmlhttp.send(null); diff --git a/tt-rss.css b/tt-rss.css index f9e109df6..a59779737 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -287,11 +287,15 @@ a:hover { background-color : #f0fff0; } -.iedit { +input.iedit { width : 100%; padding-left : 2px; } +select.iedit { + width : 100%; +} + input.editbox { width : 200px; padding-left : 2px;