Some contribution
"Ricardo Ferreira" <[email protected]> Tue, 11 Dec 2007 11:41:05 +0000
| Newsgroups | gmane.comp.cms.jahia.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
I'm using Jahia for some time and i needed to change jahia menu.
If you develop one site with some pages, and if one of that doesn't had any
child page, an empty litle box appear when you pass cursor on that menu
item.
I was looking the template code, and i changed toString() funtion on
$JAHIA_HOME/tomcat/webapps/jahia/jsp/jahia/templates/seef/corporate_portal_templates_v2/javascript/transmenu_js.jsp
from
*return '<div id="' + id + '" class="' + sClassName + '">' +
'<div class="content"><table class="items"
cellpadding="0" cellspacing="0" border="0">' +
'<tr><td colspan="2"><img src="' +
TransMenu.spacerGif + '" width="1" height="' + TransMenu.menuPadding +
'"></td></tr>' +
aHtml.join('') +
'<tr><td colspan="2"><img src="' +
TransMenu.spacerGif + '" width="1" height="' + TransMenu.menuPadding +
'"></td></tr></table>' +
'<div class="shadowBottom"><img src="' +
TransMenu.spacerGif + '" width="1" height="1"></div>' +
'<div class="shadowRight"><img src="' +
TransMenu.spacerGif + '" width="1" height="1"></div>' +
'<div class="background"><img src="' +
TransMenu.spacerGif + '" width="1" height="1"></div>' +
'</div></div>';
*
to
*var res = ''; *
* if(!(this.items.length >= 1))*
* res = '<div style="display: none;">';*
* res = res + '<div id="' + id + '" class="' +
sClassName + '">' +*
* '<div class="content"><table class="items"
cellpadding="0" cellspacing="0" border="0">' +*
* '<tr><td colspan="2"><img src="' +
TransMenu.spacerGif + '" width="1" height="' + TransMenu.menuPadding +
'"></td></tr>' +*
* aHtml.join('') +*
* '<tr><td colspan="2"><img src="' +
TransMenu.spacerGif + '" width="1" height="' + TransMenu.menuPadding +
'"></td></tr></table>' +*
* '<div class="shadowBottom"><img src="' +
TransMenu.spacerGif + '" width="1" height="1"></div>' +*
* '<div class="shadowRight"><img src="' +
TransMenu.spacerGif + '" width="1" height="1"></div>' +*
* '<div class="background"><img src="' +
TransMenu.spacerGif + '" width="1" height="1"></div>' +*
* '</div></div>';*
* if(!(this.items.length >= 1))*
* res = res + '</div>';*
* return res;*
In my option, i think that the litle empty box, shouldn't be showed. So if
you think too, there's the code.
I hope contribute to jahia project.
Regards,
Ricardo Ferreira
PS: Sorry my poor english. I'm working to improve it, but time is needed ;)
:)
_______________________________________________
dev_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list