]> git.wh0rd.org Git - tt-rss.git/commitdiff
prefs: properly enable op toolbars before showing edit dialog (because entry is actua...
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 21 Jan 2009 17:55:45 +0000 (18:55 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 21 Jan 2009 17:55:45 +0000 (18:55 +0100)
prefs.js

index 83d43670bc1db6bb04ac1364d71b20a9a3dd6b8c..33b53c381cb43c92ca57e6343b590784ee723276 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -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);