js: Drop trailing a's from the nav view code

They hold no real information.
This commit is contained in:
Yorhel 2012-08-15 09:45:55 +02:00
parent 1404ee6c47
commit 2ed30b214c

View file

@ -480,7 +480,7 @@ function navSerialize() {
for(var j=0; j<VARS.mans[i][3].length; j++)
if(j+1 < VARS.mans[i][3].length && VARS.mans[i][3][j+1][0] == VARS.mans[i][3][j][0] && (j == 0 || VARS.mans[i][3][j-1][0] != VARS.mans[i][3][j][0]))
a.push(!!VARS.mans[i][3][j+1][3]);
return bsEncode(a);
return bsEncode(a).replace(/(.)a+$/, '$1');
}
// And the reverse of the above.