@@ 1658-1664 (lines=7) @@ | ||
1655 | this.itemPull[item.id] = item; |
|
1656 | } |
|
1657 | /* recursively creates and adds submenu polygon */ |
|
1658 | dhtmlXMenuObject.prototype._addSubMenuPolygon = function(id, parentId) { |
|
1659 | var s = this._renderSublevelPolygon(id, parentId); |
|
1660 | var j = this._getMenuNodes(parentId); |
|
1661 | for (q=0; q<j.length; q++) { if (this.itemPull[j[q]]["type"] == "separator") { this._renderSeparator(j[q], null); } else { this._renderSublevelItem(j[q], null); } } |
|
1662 | if (id == parentId) { var level = "topLevel"; } else { var level = "subLevel"; } |
|
1663 | for (var q=0; q<j.length; q++) { if (this.itemPull[j[q]]["complex"]) { this._addSubMenuPolygon(id, this.itemPull[j[q]]["id"]); } } |
|
1664 | } |
|
1665 | /* inner: add single subpolygon/item/separator */ |
|
1666 | dhtmlXMenuObject.prototype._renderSublevelPolygon = function(id, parentId) { |
|
1667 | var s = document.createElement("DIV"); |
@@ 1626-1632 (lines=7) @@ | ||
1623 | this.itemPull[item.id] = item; |
|
1624 | } |
|
1625 | /* recursively creates and adds submenu polygon */ |
|
1626 | dhtmlXMenuObject.prototype._addSubMenuPolygon = function(id, parentId) { |
|
1627 | var s = this._renderSublevelPolygon(id, parentId); |
|
1628 | var j = this._getMenuNodes(parentId); |
|
1629 | for (q=0; q<j.length; q++) { if (this.itemPull[j[q]]["type"] == "separator") { this._renderSeparator(j[q], null); } else { this._renderSublevelItem(j[q], null); } } |
|
1630 | if (id == parentId) { var level = "topLevel"; } else { var level = "subLevel"; } |
|
1631 | for (var q=0; q<j.length; q++) { if (this.itemPull[j[q]]["complex"]) { this._addSubMenuPolygon(id, this.itemPull[j[q]]["id"]); } } |
|
1632 | } |
|
1633 | /* inner: add single subpolygon/item/separator */ |
|
1634 | dhtmlXMenuObject.prototype._renderSublevelPolygon = function(id, parentId) { |
|
1635 | var s = document.createElement("DIV"); |