Skip to content

Commit

Permalink
Bug Fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
poush committed May 15, 2016
1 parent f60843f commit e7ae8be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-laravel-pagination",
"version": "1.0.0",
"version": "1.0.1",
"description": "Pagination for vuejs with bootstrap, works with any serverside framework (ready to use with laravel)",
"main": "vue-pagination.js",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions vue-pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ module.exports = {
},
computed: {
data: function () {
this.visible = 1;

var from = this.pagination.current_page - this.offset;
if(from < 1) {
from = 1;
Expand Down

0 comments on commit e7ae8be

Please sign in to comment.