Quote:
Originally Posted by kartu
Mark Nord
I vaguely recall "pictures" not working / fixing it in 1.x, but if that was NOT the case and I remember it wrong, finding the cause would be very interesting, since, if anything, menu manipulations in 2.x are done even later than in 1.x.
.
|
2nd try
Found this code
Code:
// Name: Browse Folders
...
// 2010-03-14 kartu - Localized
...
// update from ContainerNode doesn't work for whatever reason, probably it is accessing the wrong "nodes"
audioAndPicturesNode.update = function (model) {
for (var i = 0, n = this.nodes.length; i < n; i++) {
if (this.nodes[i].update) {
this.nodes[i].update.call(this.nodes[i], model);
}
}
};
and copied it to
core_ui_menu.js
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);
}
}
};
This way "pictures" and "audio" are populated.
HTH
Mark