Skip to content

Commit

Permalink
Let the buf to be a integer not floot.
Browse files Browse the repository at this point in the history
  • Loading branch information
wind13 committed Apr 1, 2016
1 parent 541847e commit dc54c3a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
25 changes: 14 additions & 11 deletions Gemfile.lock
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ PATH
GEM
remote: https://rubygems.org/
specs:
celluloid (0.15.2)
timers (~> 1.1.0)
childprocess (0.3.9)
ffi (~> 1.0, >= 1.0.11)
coderay (1.0.9)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.6.2)
coffee-script-source (1.7.0)
diff-lcs (1.2.4)
execjs (1.4.0)
multi_json (~> 1.0)
ffi (1.9.0)
execjs (2.0.2)
ffi (1.9.3)
formatador (0.2.4)
guard (1.8.0)
formatador (>= 0.2.4)
Expand All @@ -43,23 +44,21 @@ GEM
multi_json
rainbow
sprockets (~> 2)
listen (1.1.6)
listen (2.7.5)
celluloid (>= 0.15.2)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
rb-kqueue (>= 0.2)
lumberjack (1.0.3)
method_source (0.8.1)
multi_json (1.7.6)
multi_json (1.10.1)
pry (0.9.12.2)
coderay (~> 1.0.5)
method_source (~> 0.8)
slop (~> 3.4)
rack (1.5.2)
rainbow (1.1.4)
rb-fsevent (0.9.3)
rb-inotify (0.9.0)
ffi (>= 0.5.0)
rb-kqueue (0.2.0)
rb-fsevent (0.9.4)
rb-inotify (0.9.4)
ffi (>= 0.5.0)
rspec (2.13.0)
rspec-core (~> 2.13.0)
Expand All @@ -83,6 +82,7 @@ GEM
tilt (~> 1.1, != 1.3.0)
thor (0.18.1)
tilt (1.4.1)
timers (1.1.0)
websocket (1.0.7)

PLATFORMS
Expand All @@ -95,3 +95,6 @@ DEPENDENCIES
jasmine-headless-webkit
jquery-bootstrap-pagination!
rb-fsevent

BUNDLED WITH
1.11.2
2 changes: 1 addition & 1 deletion src/jquery-bootstrap-pagination.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
# else if the current page is greater than the maximum display then
# show pages on both side of the current page:
else if current_page > max - 1
buf = max / 2
buf = Math.ceil(max / 2)
pages.push page for page in [(current_page - buf)..(current_page + buf)]
# else if the current page is less than or equal to the sub max then only
# show from 2 to the max page.
Expand Down

0 comments on commit dc54c3a

Please sign in to comment.