1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-26 11:59:02 +02:00

preselect active feed cat on edit

This commit is contained in:
Andrew Dolgov 2006-10-04 06:44:47 +01:00
parent 9c4837460c
commit 81780e8f4f
2 changed files with 7 additions and 18 deletions

View File

@ -660,10 +660,13 @@
$cat_id = $line["id"];
$edit_cat_id = $_GET["id"];
if ($action == "edit" && $cat_id != $edit_cat_id) {
$class .= "Grayed";
$this_row_id = "";
if ($action == "edit" && $cat_id == $edit_cat_id) {
$class .= "Selected";
$this_row_id = "";
} else if ($action == "edit" && $cat_id != $edit_cat_id) {
$class .= "Grayed";
$this_row_id = "";
} else {
$this_row_id = "id=\"FCATR-$cat_id\"";
}

View File

@ -31,20 +31,6 @@ function feedlist_callback() {
var container = document.getElementById('prefContent');
container.innerHTML=xmlhttp.responseText;
selectTab("feedConfig", true);
if (active_feed_cat) {
var row = document.getElementById("FCATR-" + active_feed_cat);
if (row) {
if (!row.className.match("Selected")) {
row.className = row.className + "Selected";
}
}
var checkbox = document.getElementById("FCCHK-" + active_feed_cat);
if (checkbox) {
checkbox.checked = true;
}
}
notify("");
} catch (e) {
exception_error("feedlist_callback", e);