Changeset 289


Ignore:
Timestamp:
12/07/11 13:23:53 (13 years ago)
Author:
vmipsl
Message:

BO pagination

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ether_megapoli/trunk/web/backoffice/user-script.jsp

    r287 r289  
    242242 
    243243            }, this ) ); 
    244             this.containerUsersNumber.html( this.nbUsers ); 
    245244        } 
    246245        else 
     
    252251            tr.append( td ); 
    253252            this.containerUsers.append( tr ); 
    254             this.containerUsersNumber.html( "0" ); 
    255         } 
    256  
    257         // Update number of max pages 
     253        } 
     254 
     255        // Update number of users and max pages 
     256        this.containerUsersNumber.html( this.nbUsers ); 
    258257        this.containerMaxPage.html( Math.ceil( this.nbUsers / this.selectSortsDisplay.getValue() ) ); 
    259258        this.loadingUser.hide(); 
     
    335334 
    336335        // Button sort 
    337         $( "#sortButton" ).bind( 'click', this, jQuery.proxy( this.requestSortUser, this ) ); 
     336        $( "#sortButton" ).bind( 'click', this, jQuery.proxy( this.onClickSort, this ) ); 
    338337    }, 
    339338 
     
    376375    }, 
    377376 
     377    onClickSort: function() 
     378    { 
     379        this.containerPage.html( 1 ); 
     380        this.requestSortUser(); 
     381    }, 
     382 
    378383    onClickPrevious: function() 
    379384    { 
Note: See TracChangeset for help on using the changeset viewer.