View Single Post
Old 06-07-2011, 05:57 PM   #2185
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
Quote:
Originally Posted by Mark Nord View Post
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);
			}
		}
	};
surquizu is offline   Reply With Quote