mirror of https://github.com/apache/archiva.git
fix issue with pagination calculation
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1233898 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ce410229ae
commit
b7ba2ba7ef
|
@ -15,7 +15,7 @@
|
||||||
ko.simpleGrid = {
|
ko.simpleGrid = {
|
||||||
// Defines a view model class you can use to populate a grid
|
// Defines a view model class you can use to populate a grid
|
||||||
viewModel: function (configuration) {
|
viewModel: function (configuration) {
|
||||||
this.data = ko.observableArray(configuration.data);
|
this.data = configuration.data;
|
||||||
this.currentPageIndex = ko.observable(0);
|
this.currentPageIndex = ko.observable(0);
|
||||||
this.pageSize = configuration.pageSize || 5;
|
this.pageSize = configuration.pageSize || 5;
|
||||||
this.columns = configuration.columns;
|
this.columns = configuration.columns;
|
||||||
|
|
Loading…
Reference in New Issue