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.
|