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.

This commit is contained in:
mozilla.mano@sent.com 2007-06-24 17:21:19 -07:00
Родитель 87dc0fdc51
Коммит ab032c2a03
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

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

Просмотреть файл

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