]> source.dussan.org Git - archiva.git/commitdiff
fix issue with pagination calculation
authorOlivier Lamy <olamy@apache.org>
Fri, 20 Jan 2012 13:22:44 +0000 (13:22 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 20 Jan 2012 13:22:44 +0000 (13:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1233898 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/knockout.simpleGrid.js

index 9a3a1382a2b8ef3e859515b54f3308f4eff5b63b..af95ad36aee4527dc8e25e1b868ceea1328a6f72 100644 (file)
@@ -15,7 +15,7 @@
     ko.simpleGrid = {
       // Defines a view model class you can use to populate a grid
       viewModel: function (configuration) {
-        this.data = ko.observableArray(configuration.data);
+        this.data = configuration.data;
         this.currentPageIndex = ko.observable(0);
         this.pageSize = configuration.pageSize || 5;
         this.columns = configuration.columns;