From e7e14a7ea067641b0bbcf926c399a4fc19b42513 Mon Sep 17 00:00:00 2001 From: "mozilla.mano@sent.com" Date: Sun, 24 Jun 2007 17:21:19 -0700 Subject: [PATCH] Bug 385497 - when adding a sidebar panel bookmark, clicking on the 'show all folders' expand button in the 'add bookmark dialog' doesn't expand all the way. r=dietrich. --- browser/base/content/browser.js | 8 ++++---- browser/components/sidebar/src/nsSidebar.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 2d2f44122425..e5ed148af0b6 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -4511,19 +4511,19 @@ function asyncOpenWebPanel(event) // This is the Opera convention for a special link that - when clicked - allows // you to add a sidebar panel. We support the Opera convention here. The link's // title attribute contains the title that should be used for the sidebar panel. +#ifndef MOZ_PLACES_BOOKMARKS var dialogArgs = { name: wrapper.getAttribute("title"), url: wrapper.href, bWebPanel: true } -#ifndef MOZ_PLACES_BOOKMARKS openDialog("chrome://browser/content/bookmarks/addBookmark2.xul", "", BROWSER_ADD_BM_FEATURES, dialogArgs); event.preventDefault(); #else - PlacesUtils.showAddBookmarkUI(makeURI(wrapper.href), - wrapper.getAttribute("title"), - null, null, true, true); + PlacesUtils.showMinimalAddBookmarkUI(makeURI(wrapper.href), + wrapper.getAttribute("title"), + null, null, true, true); event.preventDefault(); #endif return false; diff --git a/browser/components/sidebar/src/nsSidebar.js b/browser/components/sidebar/src/nsSidebar.js index 662cdf8c3ce2..b13c786e4480 100644 --- a/browser/components/sidebar/src/nsSidebar.js +++ b/browser/components/sidebar/src/nsSidebar.js @@ -130,7 +130,7 @@ function (aTitle, aContentURL, aCustomizeURL, aPersist) } catch(ex) { return; } - win.PlacesUtils.showAddBookmarkUI(uri, aTitle, null, null, true, true); + win.PlacesUtils.showMinimalAddBookmarkUI(uri, aTitle, null, null, true, true); #else var dialogArgs = { name: aTitle,