親の項目が正しく選択されないことがあった

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4932 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-08-11 05:19:59 +00:00
parent a5e360d61b
commit e79d7f5c65

View File

@ -41,7 +41,7 @@ var TreeStyleEditableBookmarkService = {
initUI : function() initUI : function()
{ {
if (!('gEditItemOverlay' in window) || this.UIInitialized) return; if (this.UIInitialized || !('gEditItemOverlay' in window)) return;
var container = document.getElementById('editBookmarkPanelGrid'); var container = document.getElementById('editBookmarkPanelGrid');
if (!container) return; if (!container) return;
@ -122,7 +122,7 @@ var TreeStyleEditableBookmarkService = {
range.detach(); range.detach();
var selected = popup.getElementsByAttribute('selected', 'true')[0]; var selected = popup.getElementsByAttribute('selected', 'true')[0];
this.menulist.value = (selected || this.blankItem).value; this.menulist.value = (selected || this.blankItem).getAttribute('value');
}, },
_createSiblingsFragment : function(aCurrentItem) _createSiblingsFragment : function(aCurrentItem)
{ {