|
From: Jon O. <jon...@us...> - 2007-06-19 18:31:49
|
Update of /cvsroot/mxbb/core/modules/mx_shared/mygosumenu/1.4 In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv14377/1.4 Modified Files: XulMenu.js Log Message: The navigation menu is updated, to support also IE New core methods for adding header and footer text/files Index: XulMenu.js =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_shared/mygosumenu/1.4/XulMenu.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XulMenu.js 5 Apr 2006 21:05:32 -0000 1.1 --- XulMenu.js 19 Jun 2007 18:31:44 -0000 1.2 *************** *** 10,14 **** function XulMenu(id) { ! this.type = "horizontal"; this.position = { --- 10,14 ---- function XulMenu(id) { ! this.type = "horizontal"; this.position = { *************** *** 35,39 **** if (this.type != "horizontal" && this.type != "vertical") { return alert("XulMenu.init() failed. Unknown menu type: '"+this.type+"'"); } document.onmousedown = click; ! if (this.browser.ie && this.browser.ie5) { this.fixWrap(); } this.fixSections(); this.parse(document.getElementById(this.id).childNodes, this.tree, this.id); --- 35,39 ---- if (this.type != "horizontal" && this.type != "vertical") { return alert("XulMenu.init() failed. Unknown menu type: '"+this.type+"'"); } document.onmousedown = click; ! if (this.browser.ie) { this.fixWrap(); } this.fixSections(); this.parse(document.getElementById(this.id).childNodes, this.tree, this.id); *************** *** 87,91 **** for (var i = 0; i < nodes.length; i++) { if (nodes[i].nodeType == 1 && /item/.test(nodes[i].className) && nodes[i].currentStyle) { ! if (this.browser.ie5) { nodes[i].style.width = (maxWidth) + "px"; } else { --- 87,91 ---- for (var i = 0; i < nodes.length; i++) { if (nodes[i].nodeType == 1 && /item/.test(nodes[i].className) && nodes[i].currentStyle) { ! if (this.browser.ie) { nodes[i].style.width = (maxWidth) + "px"; } else { *************** *** 122,126 **** if (this.type == "horizontal") { box2.style.top = (box1.offsetTop + box1.offsetHeight + this.position.level1.top) + "px"; ! if (this.browser.ie5) { box2.style.left = (this.position.level1.left) + "px"; } else { --- 122,126 ---- if (this.type == "horizontal") { box2.style.top = (box1.offsetTop + box1.offsetHeight + this.position.level1.top) + "px"; ! if (this.browser.ie) { box2.style.left = (this.position.level1.left) + "px"; } else { *************** *** 129,133 **** } else if (this.type == "vertical") { box2.style.top = (box1.offsetTop + this.position.level1.top) + "px"; ! if (this.browser.ie5) { box2.style.left = (box1.offsetWidth + this.position.level1.left) + "px"; } else { --- 129,133 ---- } else if (this.type == "vertical") { box2.style.top = (box1.offsetTop + this.position.level1.top) + "px"; ! if (this.browser.ie) { box2.style.left = (box1.offsetWidth + this.position.level1.left) + "px"; } else { |