pagy 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/javascripts/pagy.js +1 -0
- data/lib/pagy.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 815315ceb63f00493b1ff51982de163c97f92b9fad5a9b372124be3c685cbf18
|
|
4
|
+
data.tar.gz: 26a892148d17b4c1d3dc66f8cdd9656e43f40979ad97233734dfef51360d8f38
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e72b4d3fe0bcbcfe7f769b233bf265eef25384bc5eafcbbd4d711f363d89770be737a914bbf39f50977a386c39e9b023ba6471aa3a37ead0688d427b9875265
|
|
7
|
+
data.tar.gz: d388a1d003cfa5129c67fc53f7838866a1dc56df42f16c729bbdced4e6d6b9fd9cddc516125f92c74eabca9001c93da213709d70007358a8b1ee8d46140ed0e3
|
data/lib/javascripts/pagy.js
CHANGED
|
@@ -55,6 +55,7 @@ Pagy.responsive = function(id, tags, widths, series){
|
|
|
55
55
|
lastWidth = undefined,
|
|
56
56
|
resizeId = 0,
|
|
57
57
|
render = function(){
|
|
58
|
+
if (container.clientWidth === 0){ clearTimeout(resizeId); return setTimeout(render, 300) }
|
|
58
59
|
var width = widths.find(function(w) {return container.clientWidth > w});
|
|
59
60
|
if (width !== lastWidth) {
|
|
60
61
|
while (pagyEl.firstChild) { pagyEl.removeChild(pagyEl.firstChild) }
|
data/lib/pagy.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pagy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Domizio Demichelis
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-01-
|
|
11
|
+
date: 2019-01-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: 'Agnostic pagination in plain ruby: it works with any framework, ORM
|
|
14
14
|
and DB type, with all kinds of collections, even pre-paginated, scopes, Arrays,
|