Quote:
Originally Posted by Mark Nord
2nd try
Found this code
and copied it to
core_ui_menu.js
This way "pictures" and "audio" are populated.
HTH
Mark
|
Mark, I copy this code into core_ui_menu.js and do not work on my 505. What am I doing wrong?
Code:
// Create prs+ containers ("Multimedia", "Games & Utils" etc)
for (i = 0, n = customContainers.length; i < n; i++) {
container = customContainers[i];
nodeMap[container.name] = Core.ui.createContainerNode({
title: coreL(container.title),
kind: container.kind,
icon: container.icon
});
if (container.name==="multimedia") {audioAndPicturesNode = nodeMap[container.name];}
}
// update from ContainerNode doesn't work for whatever reason, probably it is accessing the wrong "nodes"
audioAndPicturesNode.update = function (model) {
var i;
for ( i = 0, n = this.nodes.length; i < n; i++) {
if (this.nodes[i].update) {
this.nodes[i].update.call(this.nodes[i], model);
}
}
};