fix row selection on editFeed()

This commit is contained in:
Andrew Dolgov 2005-12-25 14:43:31 +01:00
parent 8ddf4cdc72
commit 6c12c80902
2 changed files with 24 additions and 1 deletions

View file

@ -536,6 +536,26 @@ function selectTableRow(r, do_select) {
}
}
function selectTableRowById(elem_id, check_id, do_select) {
try {
var row = document.getElementById(elem_id);
if (row) {
selectTableRow(row, do_select);
}
var check = document.getElementById(check_id);
if (check) {
check.checked = do_select;
}
} catch (e) {
exception_error("selectTableRowById", e);
}
}
function selectTableRowsByIdPrefix(content_id, prefix, check_prefix, do_select,
classcheck) {

View file

@ -401,7 +401,10 @@ function editFeed(feed) {
xmlhttp.send(null); */
selectTableRowsByIdPrefix('prefFeedList', 'FEEDR-', 'FRCHK-', false);
selectTableRowsByIdPrefix('prefFeedList', 'FEEDR-'+feed, 'FRCHK-'+feed, true);
// selectTableRowsByIdPrefix('prefFeedList', 'FEEDR-'+feed, 'FRCHK-'+feed,
// true, false);
selectTableRowById('FEEDR-'+feed, 'FRCHK-'+feed, true);
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=editfeed&id=" +
param_escape(active_feed), true);