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

This commit is contained in:
Andrew Dolgov 2009-01-21 18:55:45 +01:00
parent 37843d7042
commit 3e36a4f410
1 changed files with 6 additions and 0 deletions

View File

@ -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);