Fix bug # 46710: can only start a drag on <treeitem> nodes. r=me

This commit is contained in:
rjc%netscape.com 2000-08-01 08:24:07 +00:00
Родитель 9f8d91fae8
Коммит ce3187b7fc
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -192,6 +192,10 @@ function BeginDragTree ( event )
if ( event.target == tree )
return(true); // continue propagating the event
// only <treeitem>s can be dragged out
if ( event.target.parentNode.parentNode.tagName != "treeitem")
return(false);
var database = tree.database;
if (!database) return(false);