From 24a7c1046e70f4e6dfd0b58d38b2a9d3dbc4bc76 Mon Sep 17 00:00:00 2001 From: "ben%netscape.com" Date: Mon, 8 Oct 2001 12:32:14 +0000 Subject: [PATCH] 101131 - Bookmarks Menu on personal toolbar is empty. Not the best fix but will do for short term. Comments added detailing proposed better solution. r=kerz, sr=hewitt git-svn-id: svn://10.0.0.236/trunk@104792 18797224-902f-48f8-a5cc-f745e15eee43 --- .../browser/resources/content/navigator.xul | 3 ++- .../resources/content/personalToolbar.js | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/mozilla/xpfe/browser/resources/content/navigator.xul b/mozilla/xpfe/browser/resources/content/navigator.xul index 127c8184992..9ceb21618f0 100644 --- a/mozilla/xpfe/browser/resources/content/navigator.xul +++ b/mozilla/xpfe/browser/resources/content/navigator.xul @@ -251,6 +251,7 @@ Contributor(s): ______________________________________. --> ondragover="nsDragAndDrop.dragOver(event, bookmarksButtonObserver);" template="bookmarksMenuTemplate"> @@ -261,7 +262,7 @@ Contributor(s): ______________________________________. --> - + diff --git a/mozilla/xpfe/browser/resources/content/personalToolbar.js b/mozilla/xpfe/browser/resources/content/personalToolbar.js index 5e94603a35d..90afe8ed9ab 100644 --- a/mozilla/xpfe/browser/resources/content/personalToolbar.js +++ b/mozilla/xpfe/browser/resources/content/personalToolbar.js @@ -499,5 +499,24 @@ function BM_navigatorLoad(aEvent) } } + +// An interim workaround for 101131 - Bookmarks Toolbar button nonfunctional. +// This simply checks to see if the bookmark menu is empty (aside from static +// items) when it is opened and if it is, prompts a rebuild. +// The best fix for this is more time consuming, and relies on document +//