lib/public/js/browse.js
function make_page(i, total) {
    var $p = $$('page', {el: 'span'});
    if (i == page) {
      $p.addClass('selected');
      $lp = $p;
    }
    var top = Math.min(i*pagesize+pagesize, total);
    $p.text((i*pagesize+1)+'-'+top);
    $p.text(i+1);
    $p.click(function () {
      page = i;
      zcookie.set('page-'+type, page);
      if ($lp)
        $lp.removeClass('selected');
      $lp = $p;
      $lp.addClass('selected');
      request_data();
    });
    return $p;
  }
function make_page(i, total) {
    var $p = $$('page', {el: 'span'});
    if (i == page) {
      $p.addClass('selected');
      $lp = $p;
    }
    var top = Math.min(i*pagesize+pagesize, total);
    $p.text((i*pagesize+1)+'-'+top);
    $p.text(i+1);
    $p.click(function () {
      page = i;
      zcookie.set('page-'+type, page);
      if ($lp)
        $lp.removeClass('selected');
      $lp = $p;
      $lp.addClass('selected');
      request_data();
    });
    return $p;
  }
function make_page ( i , total ) { var $p = $$ ( 'page' , { el : 'span' } ) ; if ( i == page ) { $p . addClass ( 'selected' ) ; $lp = $p ; } var top = Math . min ( i * pagesize + pagesize , total ) ; $p . text ( ( i * pagesize + 1 ) + '-' + top ) ; $p . text ( i + 1 ) ; $p . click ( function ( ) { page = i ; zcookie . set ( 'page-' + type , page ) ; if ( $lp ) $lp . removeClass ( 'selected' ) ; $lp = $p ; $lp . addClass ( 'selected' ) ; request_data ( ) ; } ) ; return $p ; }
last page clicked
last page clicked