зеркало из https://github.com/mozilla/pjs.git
cleaning up comments
This commit is contained in:
Родитель
375afcb5f1
Коммит
67c42818ef
|
@ -19,7 +19,7 @@
|
||||||
*
|
*
|
||||||
* Contributor(s):
|
* Contributor(s):
|
||||||
* Ben Goodger (28/10/99)
|
* Ben Goodger (28/10/99)
|
||||||
* Seth Spitzer
|
* Seth Spitzer (28/10/99)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var selected = null;
|
var selected = null;
|
||||||
|
@ -145,8 +145,9 @@ function showSelection(node)
|
||||||
{
|
{
|
||||||
// (see tree's onclick definition)
|
// (see tree's onclick definition)
|
||||||
// Tree events originate in the smallest clickable object which is the cell. The object
|
// Tree events originate in the smallest clickable object which is the cell. The object
|
||||||
// originating the event is available as event.target. We want the cell's row, so we go
|
// originating the event is available as event.target.
|
||||||
// one further and get event.target.parentNode.
|
// We want the item in the
|
||||||
|
// cell's row, so we got passed event.target.parentNode.parentNode
|
||||||
selected = node;
|
selected = node;
|
||||||
var tree = document.getElementById("profiles");
|
var tree = document.getElementById("profiles");
|
||||||
if(tree.selectedItems.length > 0)
|
if(tree.selectedItems.length > 0)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче