View Single Post
Old 08-21-2007, 03:40 AM   #20
ns66
Connoisseur
ns66 doesn't litterns66 doesn't litter
 
Posts: 78
Karma: 156
Join Date: Jul 2007
Device: sony reader
ok i tried it doesn't work, i added the function under menu group:

<function id="doDigit" params="part"><![CDATA[
var keyCode = part.key.charCodeAt(0);

e = this.countPages();

if(e>10)
{
if (keyCode == 0x30) {
this.setPage(Math.round((e*10)/11}
else if (keyCode > 0x30) {
this.setPage(Math.round((e*(keyCode-0x30))/11))}
}
else
{
this.getModel().doDigit(part);
}
]]></function>

when in book list section with 50 pages, it works fine jumping to N% pages, but when in other menus with 1 page, instead of doing the original digit function, nothing happened...either e!=1 there or the this.getModel().doDigit(part); doesn't work

any idea?

Last edited by ns66; 08-21-2007 at 03:44 AM.
ns66 is offline   Reply With Quote