File tree Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 6
6
GEM
7
7
remote: https://rubygems.org/
8
8
specs:
9
+ celluloid (0.15.2 )
10
+ timers (~> 1.1.0 )
9
11
childprocess (0.3.9 )
10
12
ffi (~> 1.0 , >= 1.0.11 )
11
13
coderay (1.0.9 )
12
14
coffee-script (2.2.0 )
13
15
coffee-script-source
14
16
execjs
15
- coffee-script-source (1.6.2 )
17
+ coffee-script-source (1.7.0 )
16
18
diff-lcs (1.2.4 )
17
- execjs (1.4.0 )
18
- multi_json (~> 1.0 )
19
- ffi (1.9.0 )
19
+ execjs (2.0.2 )
20
+ ffi (1.9.3 )
20
21
formatador (0.2.4 )
21
22
guard (1.8.0 )
22
23
formatador (>= 0.2.4 )
43
44
multi_json
44
45
rainbow
45
46
sprockets (~> 2 )
46
- listen (1.1.6 )
47
+ listen (2.7.5 )
48
+ celluloid (>= 0.15.2 )
47
49
rb-fsevent (>= 0.9.3 )
48
50
rb-inotify (>= 0.9 )
49
- rb-kqueue (>= 0.2 )
50
51
lumberjack (1.0.3 )
51
52
method_source (0.8.1 )
52
- multi_json (1.7.6 )
53
+ multi_json (1.10.1 )
53
54
pry (0.9.12.2 )
54
55
coderay (~> 1.0.5 )
55
56
method_source (~> 0.8 )
56
57
slop (~> 3.4 )
57
58
rack (1.5.2 )
58
59
rainbow (1.1.4 )
59
- rb-fsevent (0.9.3 )
60
- rb-inotify (0.9.0 )
61
- ffi (>= 0.5.0 )
62
- rb-kqueue (0.2.0 )
60
+ rb-fsevent (0.9.4 )
61
+ rb-inotify (0.9.4 )
63
62
ffi (>= 0.5.0 )
64
63
rspec (2.13.0 )
65
64
rspec-core (~> 2.13.0 )
83
82
tilt (~> 1.1 , != 1.3.0 )
84
83
thor (0.18.1 )
85
84
tilt (1.4.1 )
85
+ timers (1.1.0 )
86
86
websocket (1.0.7 )
87
87
88
88
PLATFORMS
@@ -95,3 +95,6 @@ DEPENDENCIES
95
95
jasmine-headless-webkit
96
96
jquery-bootstrap-pagination !
97
97
rb-fsevent
98
+
99
+ BUNDLED WITH
100
+ 1.11.2
Original file line number Diff line number Diff line change 47
47
48
48
# merge defaults with passed in options:
49
49
@settings = $ .extend (defaults, options)
50
+ @settings .total_pages = Math .max (1 , @settings .total_pages )
50
51
51
52
# add a click handler event to the view:
52
53
if $ (document ).on
119
120
# else if the current page is greater than the maximum display then
120
121
# show pages on both side of the current page:
121
122
else if current_page > max - 1
122
- buf = max / 2
123
+ buf = Math . ceil ( max / 2 )
123
124
pages .push page for page in [(current_page - buf).. (current_page + buf)]
124
125
# else if the current page is less than or equal to the sub max then only
125
126
# show from 2 to the max page.
You can’t perform that action at this time.
0 commit comments