зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2bc93b7f14
Коммит
e7e14a7ea0
|
@ -4511,19 +4511,19 @@ function asyncOpenWebPanel(event)
|
||||||
// This is the Opera convention for a special link that - when clicked - allows
|
// 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
|
// 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.
|
// title attribute contains the title that should be used for the sidebar panel.
|
||||||
|
#ifndef MOZ_PLACES_BOOKMARKS
|
||||||
var dialogArgs = {
|
var dialogArgs = {
|
||||||
name: wrapper.getAttribute("title"),
|
name: wrapper.getAttribute("title"),
|
||||||
url: wrapper.href,
|
url: wrapper.href,
|
||||||
bWebPanel: true
|
bWebPanel: true
|
||||||
}
|
}
|
||||||
#ifndef MOZ_PLACES_BOOKMARKS
|
|
||||||
openDialog("chrome://browser/content/bookmarks/addBookmark2.xul", "",
|
openDialog("chrome://browser/content/bookmarks/addBookmark2.xul", "",
|
||||||
BROWSER_ADD_BM_FEATURES, dialogArgs);
|
BROWSER_ADD_BM_FEATURES, dialogArgs);
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
#else
|
#else
|
||||||
PlacesUtils.showAddBookmarkUI(makeURI(wrapper.href),
|
PlacesUtils.showMinimalAddBookmarkUI(makeURI(wrapper.href),
|
||||||
wrapper.getAttribute("title"),
|
wrapper.getAttribute("title"),
|
||||||
null, null, true, true);
|
null, null, true, true);
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
#endif
|
#endif
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -130,7 +130,7 @@ function (aTitle, aContentURL, aCustomizeURL, aPersist)
|
||||||
}
|
}
|
||||||
catch(ex) { return; }
|
catch(ex) { return; }
|
||||||
|
|
||||||
win.PlacesUtils.showAddBookmarkUI(uri, aTitle, null, null, true, true);
|
win.PlacesUtils.showMinimalAddBookmarkUI(uri, aTitle, null, null, true, true);
|
||||||
#else
|
#else
|
||||||
var dialogArgs = {
|
var dialogArgs = {
|
||||||
name: aTitle,
|
name: aTitle,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче