Make sure that panels opened via bookmarks don't have the Add Web Panel button enabled, since they're already bookmarked.

This commit is contained in:
hyatt%mozilla.org 2003-08-04 00:17:08 +00:00
parent d36a770b6e
commit 58876decc1

View File

@ -82,7 +82,7 @@ function loadWebPanel(aURI) {
try {
document.getElementById('webpanels-browser').webNavigation.loadURI(aURI, nsIWebNavigation.LOAD_FLAGS_NONE, null, null, null);
var addButton = document.getElementById('addpanel-button');
addButton.disabled = false;
addButton.disabled = true;
} catch (e) {}
}