Permalink
Browse files

CSPACE-5092: Fixing an issue with navigating to records from listview…

… without offset.
  • Loading branch information...
1 parent eafa636 commit 212771a8c73d06bdb5880bf0e2abea3ead1721ed @yzen yzen committed Apr 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/webapp/defaults/js/ListView.js
View
2 src/main/webapp/defaults/js/ListView.js
@@ -256,7 +256,7 @@ cspace = cspace || {};
}, cspace.util.provideErrorCallback(that, that.dataSource.resolveUrl(directModel), "errorFetching"));
};
that.styleAndActivate = function (row, rows) {
- var index = rows.index(row),
+ var index = that.model.offset + rows.index(row),
record = that.model.list[index];
if (!cspace.permissions.resolve({
permission: "read",

0 comments on commit 212771a

Please sign in to comment.