Lines Matching refs:node

54  * @param {string}        dokuid page id of node
55 * @param {number} id node id
56 * @param {number} pid parent node id
65 this.dokuid = dokuid; // page id of node
67 this.id = id; // id number of node
69 this.pid = pid; // id number of parent node
79 this._io = false; // is node open
97 this.icon = ''; // icon of closed node
99 this.iconOpen = ''; // icon of opened node
129 node: imagePath + 'page.' + imgExt,
150 this.selectedNode = undefined; // node id
166 * a.node Namespace without url link
174 * Adds a new node to the node array
176 * @param {string} dokuid page id of node
177 * @param {number} id node id
178 * @param {number} pid parent node id
189 * Open all nodes, if no node status was stored in cookie
241 * @returns {string} html of node (inclusive children)
267 str += this.node(cn, n);
278 * Create empty node
280 * @param {dTreeNode} node
282 * @returns {string} html of empty node
284 dTree.prototype.noderr = function (node, nodeId) {
285 let str = '<div class="dTreeNode">' + this.indent(node, nodeId);
291 * Creates the node icon, url and text
293 * @param {dTreeNode} node
295 * @returns {string} html of node (inclusive children)
297 dTree.prototype.node = function (node, nodeId) {
300 if (node._lvl > this.config.maxjs) {
303 node._ok = true;
305 str = '<div class="dTreeNode">' + this.indent(node, nodeId);
306 node.icon = (this.root.id === node.pid) ? this.icon.root : ((node.hns) ? this.icon.folderH : ((node._hc) ? this.icon.folder : this.icon.node));
307 node.iconOpen = (node._hc) ? ((node.hns) ? this.icon.folderHOpen : this.icon.folderOpen) : this.icon.node;
308 if (this.root.id === node.pid) {
309 node.icon = this.icon.root;
310 node.iconOpen = this.icon.root;
312 str += '<img id="i' + this.treeName + nodeId + '" src="' + ((node._io) ? node.iconOpen : node.icon) + '" alt="" />';
313 if (!node._hc || node.hns) {
314 str += '<a id="s' + this.treeName + nodeId + '" class="' + ((node._cp) ? 'navSel' : ((node._is) ? 'nodeSel' : (node._hc) ? 'nodeFdUrl' : 'nodeUrl'));
316 (node.hns) ? str += node.hns : str += node.dokuid;
317 str += '"' + ' title="' + node.name + '"' + jsfnc;
319 str += '>' + node.name + '</a>';
321 else if (node.pid !== this.root.id) {
322 str += '<a id="s' + this.treeName + nodeId + '" href="javascript: ' + this.treeName + '.o(' + nodeId + '); " class="node"' + jsfnc + '>' + node.name + '</a>';
324 str += node.name;
327 if (node._hc) {
328 str += '<div id="d' + this.treeName + nodeId + '" class="clip" style="display:' + ((this.root.id === node.pid || node._io) ? 'block' : 'none') + ';">';
330 str += this.addNode(node);
339 * Adds the empty and line icons which indent the node
341 * @param {dTreeNode} node
345 dTree.prototype.indent = function (node, nodeId) {
347 if (this.root.id !== node.pid) {
351 if (node._ls) {
356 if (node._hc) {
359 ( (node._io) ? ((node._ls) ? this.icon.minusBottom : this.icon.minus) : ((node._ls) ? this.icon.plusBottom : this.icon.plus ) ) +
362 str += '<img src="' + ((node._ls) ? this.icon.joinBottom : this.icon.join) + '" alt="" />';
369 * Checks if a node has any children and if it is the last sibling
371 * @param {dTreeNode} node
373 dTree.prototype.setCS = function (node) {
376 if (this.aNodes[n].pid === node.id) {
377 node._hc = true;
379 if (this.aNodes[n].pid === node.pid) {
383 if (lastId === node.id) {
384 node._ls = true;
389 * Returns the selected node as stored in cookie
391 * @returns {int} node id
399 * Highlights the selected node
401 * @param {int} id node id
412 eOld.className = "node";
425 * @param {int} id node id
457 * Opens the tree to a specific node
459 * @param {number} nId node id
489 * Open the given nodes, if no node status is already stored
504 * Change the status of a node(open or closed)
507 * @param {int} id node id
508 * @param {boolean} bottom true if bottom node
587 * [Cookie] Checks if a node id is in the cookie
589 * @param {int} id node id
603 * Open the node of the current namespace
641 * @param {int} id node id
715 * @param {int} n parent node id
801 * @param {int} n node id
804 var w, div, id, dtree, dtreel, self, node = jQuery('#s' + this.treeName + n)[0];
806 if (this.config.toc && node.className !== "node") {
812 node.parentNode.appendChild(div);
834 w = parseInt(dtree.parentNode.offsetWidth - node.offsetWidth - node.offsetLeft + 1);
837 div.style.top = node.offsetTop + "px";
838 div.style.left = parseInt(node.offsetLeft + node.offsetWidth + w - 12) + "px";
872 * @param {int} n node id
875 var node, selft = this;
877 node = selft.aNodes[n];
879 req = 'req=index&idx=' + node.dokuid + decodeURIComponent(this.config.jsajax);
895 node.ajax = false;
898 ajxnode[2] = (ajxnode[2] == 0) ? node.id : ajxnode[2] + plus;
906 selft.openTo(node.id, false, true);
933 * @param {int} n node id
938 let type, node, cdtree, $rmenu;
946 node = this.aNodes[n];
947 $rmenu.innerHTML = '<div class="indexmenu_rmenuhead" title="' + node.name + '">' + node.name + "</div>";
949 type = (node.isdir || node._hc) ? 'ns' : 'pg';
951 if (node.hns) {