smart_listing 1.1.0 → 1.1.1
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/README.md +1 -1
- data/app/assets/javascripts/smart_listing.coffee.erb +2 -2
- data/lib/smart_listing/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 92ecd77f11c42d26c8ae9f3bd5280b40ecb3e742
|
|
4
|
+
data.tar.gz: 9bad62f111c4a7cdea95787d7e3f5f0f90fb0e1d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b1638bd9e5756ab6bf8c622f2e617d71112ca6efcfb5355e71d5b62c5268fc86f2100242ab4bc6576beffa0f44cd2656f8d14f985b90aea3a8c782ad0c5091a4
|
|
7
|
+
data.tar.gz: 8ea053d4b24bca1c91500625f7ac9cae7bc6f42af34c46c8318215c3ad73e672f7d88fb9dfa66a67536b24999d0d1d9dbdefe1a3d66bae06cbec02747cf26a93
|
data/README.md
CHANGED
|
@@ -59,7 +59,7 @@ Next, put following code in controller action you desire:
|
|
|
59
59
|
@users = smart_listing_create(:users, User.active, partial: "users/listing")
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
This will create SmartListing named `:users` consisting of ActiveRecord scope `User.active` elements and rendered by partial `users/listing`. You can also use arrays instead of ActiveRecord collections. Just put
|
|
62
|
+
This will create SmartListing named `:users` consisting of ActiveRecord scope `User.active` elements and rendered by partial `users/listing`. You can also use arrays instead of ActiveRecord collections. Just put `array: true` option just like for Kaminari.
|
|
63
63
|
|
|
64
64
|
In the main view (typically something like `index.html.erb` or `index.html.haml`), use this method to render listing:
|
|
65
65
|
|
|
@@ -61,8 +61,8 @@ class window.SmartListing
|
|
|
61
61
|
@cancelEdit(editable)
|
|
62
62
|
else
|
|
63
63
|
# Cancel new record
|
|
64
|
-
@container.find(SmartListing.config.class_name("new_item_placeholder")).addClass(SmartListing.config.
|
|
65
|
-
@container.find(SmartListing.config.class_name("new_item_action")).removeClass(SmartListing.config.
|
|
64
|
+
@container.find(SmartListing.config.class_name("new_item_placeholder")).addClass(SmartListing.config.class("hidden"))
|
|
65
|
+
@container.find(SmartListing.config.class_name("new_item_action")).removeClass(SmartListing.config.class("hidden"))
|
|
66
66
|
|
|
67
67
|
@setAutoshow(false)
|
|
68
68
|
false
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: smart_listing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sology
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-02-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|