View Single Post
Old 05-28-2011, 05:33 AM   #2166
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Quote:
Originally Posted by kartu View Post
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

Last edited by Mark Nord; 05-29-2011 at 03:37 PM. Reason: added and "audio"
Mark Nord is offline   Reply With Quote