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.

git-svn-id: svn://10.0.0.236/trunk@228662 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mozilla.mano%sent.com 2007-06-25 00:21:19 +00:00
parent 43981c671e
commit 7d15a5669e
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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,