fix for bug #388860: New folder button on Add Bookmark panel does nothing

r=dietrich
This commit is contained in:
sspitzer%mozilla.org 2007-07-20 04:18:44 +00:00
Родитель 1a76570e82
Коммит 7198c8b4ad
3 изменённых файлов: 6 добавлений и 3 удалений

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

@ -1022,7 +1022,7 @@ var BookmarkPropertiesPanel = {
expander.className = "up";
expander.setAttribute("tooltiptext",
expander.getAttribute("tooltiptextup"));
document.documentElement.buttons = "accept,cancel, extra2";
document.documentElement.buttons = "accept,cancel,extra2";
if (!this._folderTree.treeBoxObject.view.isContainerOpen(0))
this._folderTree.treeBoxObject.view.toggleOpenState(0);

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

@ -164,7 +164,7 @@
persist="height"
onselect="BookmarkPropertiesPanel.onFolderTreeSelect();"
showRoot="true"
place="place:folder=2&group=3&excludeItems=1&excludeQueries=1&excludeReadOnlyFolders=1"
place="place:folder=2&group=3&excludeItems=1&excludeQueries=1&excludeReadOnlyFolders=1&queryType=1"
hidecolumnpicker="true">
<treecols>
<treecol id="title" flex="1" primary="true" hideheader="true"/>

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

@ -439,8 +439,11 @@
// there is no insertion point for history queries
// so bail out now and save a lot of work when updating commands
var options = asQuery(this.getResult().root).queryOptions;
if (options.queryType == options.QUERY_TYPE_HISTORY)
if (options.queryType == options.QUERY_TYPE_HISTORY) {
NS_ASSERT(this.getResult().root.folderCount == 0,
"wrong queryType, see bug #388860");
return null;
}
var orientation = NHRVO.DROP_AFTER;
// If there is no selection, insert at the end of the container.