Skip to content
This repository has been archived by the owner on Jun 27, 2021. It is now read-only.

Commit

Permalink
updating demo / test
Browse files Browse the repository at this point in the history
  • Loading branch information
Uditha Atukorala committed Sep 19, 2012
1 parent f6d95ed commit cc0163d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/assets/javascript/demo.js
Expand Up @@ -4,7 +4,10 @@ window.addEvent('domready', function(){
var pagination = new xPagination({
element_left : $('pag-content-01'),
element_active : $('pag-content-02'),
element_right : $('pag-content-03')
element_right : $('pag-content-03'),
onPagechange: function( element, page ) {
console.log('[options]: load "' + element.id + '" with page ' + page );
}
});

$$('.previous').addEvent('click', function( e ) {
Expand All @@ -17,4 +20,8 @@ window.addEvent('domready', function(){
pagination.next();
});

pagination.addEvent( 'pagechange', function( element, page ){
console.log('[event handler]: load "' + element.id + '" with page ' + page );
});

});

0 comments on commit cc0163d

Please sign in to comment.