This commit is contained in:
noririty%jcom.home.ne.jp 2003-07-23 14:24:05 +00:00
Родитель d26f4f42ba
Коммит d9dcab299f
2 изменённых файлов: 6 добавлений и 8 удалений

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

@ -758,10 +758,7 @@
// Now select the new tab before nuking the old one.
var currentIndex = this.mPanelContainer.selectedIndex;
// Now select the new tab before nuking the old one.
var currentIndex = this.mPanelContainer.selectedIndex;
var newIndex = -1;
if (currentIndex > index)
newIndex = currentIndex-1;

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

@ -210,21 +210,22 @@
var newItem = null;
// Create special cases of palette items.
var uniqueId;
if (aId == "separator") {
newItem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",
"toolbarseparator");
var uniqueId = (new Date()).getTime()+this.childNodes.length;
uniqueId = (new Date()).getTime()+this.childNodes.length;
newItem.id = "separator" + uniqueId;
} else if (aId == "spring") {
newItem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",
"toolbarspring");
var uniqueId = (new Date()).getTime()+this.childNodes.length;
uniqueId = (new Date()).getTime()+this.childNodes.length;
newItem.flex = 1;
newItem.id = "spring" + uniqueId;
} else if (aId == "spacer") {
newItem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",
"toolbarspacer");
var uniqueId = (new Date()).getTime()+this.childNodes.length;
uniqueId = (new Date()).getTime()+this.childNodes.length;
newItem.id = "spacer" + uniqueId;
} else {
// Attempt to locate an item with a matching id within palette.
@ -240,7 +241,7 @@
}
if (!newItem)
return;
return false;
var insertItem = newItem;