fix row selection on editFeed()
This commit is contained in:
parent
8ddf4cdc72
commit
6c12c80902
2 changed files with 24 additions and 1 deletions
20
functions.js
20
functions.js
|
@ -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) {
|
||||
|
||||
|
|
5
prefs.js
5
prefs.js
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue