@@ 956-970 (lines=15) @@ | ||
953 | if ((this.itemPull[this.idPrefix+id]["complex"]) && (this.menuSelected != -1)) { this._showPolygon(this.idPrefix+id, this.dirTopLevel); } |
|
954 | } |
|
955 | } |
|
956 | dhtmlXMenuObject.prototype._initTopLevelMenu = function() { |
|
957 | // console.log(this.idPull); |
|
958 | this.dirTopLevel = "bottom"; |
|
959 | this.dirSubLevel = (this._rtl?"left":"right"); |
|
960 | if (this.context) { |
|
961 | this.idPull[this.idPrefix+this.topId] = new Array(0,0); |
|
962 | this._addSubMenuPolygon(this.idPrefix+this.topId, this.idPrefix+this.topId); |
|
963 | } else { |
|
964 | var m = this._getMenuNodes(this.idPrefix + this.topId); |
|
965 | for (var q=0; q<m.length; q++) { |
|
966 | if (this.itemPull[m[q]]["type"] == "item") this._renderToplevelItem(m[q], null); |
|
967 | if (this.itemPull[m[q]]["type"] == "separator") this._renderSeparator(m[q], null); |
|
968 | } |
|
969 | } |
|
970 | } |
|
971 | /* add top menu item, complex define that submenues are in presence */ |
|
972 | dhtmlXMenuObject.prototype._renderToplevelItem = function(id, pos) { |
|
973 | var main_self = this; |
@@ 927-941 (lines=15) @@ | ||
924 | if ((this.itemPull[this.idPrefix+id]["complex"]) && (this.menuSelected != -1)) { this._showPolygon(this.idPrefix+id, this.dirTopLevel); } |
|
925 | } |
|
926 | } |
|
927 | dhtmlXMenuObject.prototype._initTopLevelMenu = function() { |
|
928 | // console.log(this.idPull); |
|
929 | this.dirTopLevel = "bottom"; |
|
930 | this.dirSubLevel = (this._rtl?"left":"right"); |
|
931 | if (this.context) { |
|
932 | this.idPull[this.idPrefix+this.topId] = new Array(0,0); |
|
933 | this._addSubMenuPolygon(this.idPrefix+this.topId, this.idPrefix+this.topId); |
|
934 | } else { |
|
935 | var m = this._getMenuNodes(this.idPrefix + this.topId); |
|
936 | for (var q=0; q<m.length; q++) { |
|
937 | if (this.itemPull[m[q]]["type"] == "item") this._renderToplevelItem(m[q], null); |
|
938 | if (this.itemPull[m[q]]["type"] == "separator") this._renderSeparator(m[q], null); |
|
939 | } |
|
940 | } |
|
941 | } |
|
942 | /* add top menu item, complex define that submenues are in presence */ |
|
943 | dhtmlXMenuObject.prototype._renderToplevelItem = function(id, pos) { |
|
944 | var main_self = this; |