mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
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:
parent
d36a770b6e
commit
58876decc1
@ -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) {}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user