preselect active feed cat on edit
This commit is contained in:
parent
9c4837460c
commit
81780e8f4f
|
@ -661,7 +661,10 @@
|
||||||
|
|
||||||
$edit_cat_id = $_GET["id"];
|
$edit_cat_id = $_GET["id"];
|
||||||
|
|
||||||
if ($action == "edit" && $cat_id != $edit_cat_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";
|
$class .= "Grayed";
|
||||||
$this_row_id = "";
|
$this_row_id = "";
|
||||||
} else {
|
} else {
|
||||||
|
|
14
prefs.js
14
prefs.js
|
@ -31,20 +31,6 @@ function feedlist_callback() {
|
||||||
var container = document.getElementById('prefContent');
|
var container = document.getElementById('prefContent');
|
||||||
container.innerHTML=xmlhttp.responseText;
|
container.innerHTML=xmlhttp.responseText;
|
||||||
selectTab("feedConfig", true);
|
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("");
|
notify("");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("feedlist_callback", e);
|
exception_error("feedlist_callback", e);
|
||||||
|
|
Loading…
Reference in New Issue