Hi all,
I have a javascript error using IE6 when trying to view a Navigation
Porlet with mode cps_portlet_nav_display_dyn_navtree_menu_label The
error is not very descriptive, as is usual using that browser:
"CPSTreeViewEditor is unknown". Anybody else have the same problem ?
I've found the problem in CPSPortlets/browser/tree.pt Changing the
dynamic load of javascript:
<script type="text/javascript">
function loadScript(id, url) {
if (document.getElementById(id))
return false;
var e = document.createElement("script");
e.src = url;
e.type="text/javascript";
document.getElementsByTagName("head")[0].appendChild(e);
return true;
}
loadScript('prototype', 'prototype.js');
loadScript('effect', 'effects.js');
loadScript('treeview', '++resource++treenodeview.js');
</script>
For a static one:
<script lang="javascript" src="prototype.js"></script>
<script lang="javascript" src="effects.js"></script>
<script lang="javascript" src="++resource++treenodeview.js"></script>
Solves the problem for me. Could this be considered a bug ? If
yes, I will add the entry and the patch in the bug tracker.
Regards
--
Santi Camps
Earcon S.L. - http://www.earcon.com
- http://www.kmkey.com
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel