prefs: properly enable op toolbars before showing edit dialog (because entry is actually selected)

master
Andrew Dolgov 16 years ago
parent 37843d7042
commit 3e36a4f410

@ -443,6 +443,8 @@ function editUser(id) {
selectTableRowsByIdPrefix('prefUserList', 'UMRR-', 'UMCHK-', false);
selectTableRowById('UMRR-'+id, 'UMCHK-'+id, true);
disableContainerChildren("userOpToolbar", false);
xmlhttp.open("GET", "backend.php?op=pref-users&subop=edit&id=" +
param_escape(id), true);
xmlhttp.onreadystatechange=infobox_callback;
@ -463,6 +465,8 @@ function editFilter(id) {
// document.getElementById("create_filter_btn").disabled = true;
disableContainerChildren("filterOpToolbar", false);
selectTableRowsByIdPrefix('prefFilterList', 'FILRR-', 'FICHK-', false);
selectTableRowById('FILRR-'+id, 'FICHK-'+id, true);
@ -496,6 +500,8 @@ function editFeed(feed) {
selectTableRowsByIdPrefix('prefFeedList', 'FEEDR-', 'FRCHK-', false);
selectTableRowById('FEEDR-'+feed, 'FRCHK-'+feed, true);
disableContainerChildren("feedOpToolbar", false);
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=editfeed&id=" +
param_escape(feed), true);

Loading…
Cancel
Save